1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-13 05:45:31 -04:00

stop printing debug comments in production footer

This commit is contained in:
2021-05-01 18:07:03 -04:00
parent 5a53aab5d3
commit 298e8ed70f
6 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@@ -2,6 +2,7 @@
public/
builds/
_vendor/
hugo_stats.json
# node/npm/yarn
node_modules/

View File

@@ -2,6 +2,7 @@
assets/**/vendor/
layouts/
static/
hugo_stats.json
# output from Hugo
public/

View File

@@ -185,6 +185,7 @@ disableAliases = true
dir = ":cacheDir/modules"
[build]
writeStats = true
# don't use cache for SCSS compilation, better to throw error than be stale
useResourceCacheWhen = "never"

View File

@@ -17,4 +17,4 @@
</body>
</html>
{{ partialCached "functions/debug" . }}
{{ partial "functions/debug" . }}

View File

@@ -1,4 +1,3 @@
{{ printf "<!-- htmlmin:ignore -->" | safeHTML -}}
{{ printf "<!-- %s -->" hugo.Environment | safeHTML }}
{{ printf "<!-- %s -->" hugo.Version | safeHTML }}
{{- printf "<!-- htmlmin:ignore -->" | safeHTML }}
{{ printf "<!-- /content/%s -->" .File.Path | safeHTML }}

View File

@@ -11,5 +11,6 @@
{{- $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 */}}
{{/* https://gohugo.io/hugo-pipes/introduction/#asset-publishing */}}
{{- printf "<!-- auto-inlined from: %s -->" $svg.Permalink | safeHTML }}
{{- $html | safeHTML -}}