mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-12-03 04:18:57 -05:00
stop printing debug comments in production footer
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,6 +2,7 @@
|
|||||||
public/
|
public/
|
||||||
builds/
|
builds/
|
||||||
_vendor/
|
_vendor/
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
# node/npm/yarn
|
# node/npm/yarn
|
||||||
node_modules/
|
node_modules/
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
assets/**/vendor/
|
assets/**/vendor/
|
||||||
layouts/
|
layouts/
|
||||||
static/
|
static/
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
# output from Hugo
|
# output from Hugo
|
||||||
public/
|
public/
|
||||||
|
|||||||
@@ -185,6 +185,7 @@ disableAliases = true
|
|||||||
dir = ":cacheDir/modules"
|
dir = ":cacheDir/modules"
|
||||||
|
|
||||||
[build]
|
[build]
|
||||||
|
writeStats = true
|
||||||
# don't use cache for SCSS compilation, better to throw error than be stale
|
# don't use cache for SCSS compilation, better to throw error than be stale
|
||||||
useResourceCacheWhen = "never"
|
useResourceCacheWhen = "never"
|
||||||
|
|
||||||
|
|||||||
@@ -17,4 +17,4 @@
|
|||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
{{ partialCached "functions/debug" . }}
|
{{ partial "functions/debug" . }}
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
{{ printf "<!-- htmlmin:ignore -->" | safeHTML -}}
|
|
||||||
{{ printf "<!-- %s -->" hugo.Environment | safeHTML }}
|
{{ printf "<!-- %s -->" hugo.Environment | safeHTML }}
|
||||||
{{ printf "<!-- %s -->" hugo.Version | safeHTML }}
|
{{ printf "<!-- %s -->" hugo.Version | safeHTML }}
|
||||||
{{- printf "<!-- htmlmin:ignore -->" | safeHTML }}
|
{{ printf "<!-- /content/%s -->" .File.Path | safeHTML }}
|
||||||
|
|||||||
@@ -11,5 +11,6 @@
|
|||||||
{{- $html = replace $html "<svg " $wxh -}}
|
{{- $html = replace $html "<svg " $wxh -}}
|
||||||
|
|
||||||
{{/* bit of a hack: calling .Permalink so that the SVG file is published too, comment will be removed when minified */}}
|
{{/* bit of a hack: calling .Permalink so that the SVG file is published too, comment will be removed when minified */}}
|
||||||
|
{{/* https://gohugo.io/hugo-pipes/introduction/#asset-publishing */}}
|
||||||
{{- printf "<!-- auto-inlined from: %s -->" $svg.Permalink | safeHTML }}
|
{{- printf "<!-- auto-inlined from: %s -->" $svg.Permalink | safeHTML }}
|
||||||
{{- $html | safeHTML -}}
|
{{- $html | safeHTML -}}
|
||||||
|
|||||||
Reference in New Issue
Block a user