Skip to content

Commit e92cff8

Browse files
author
Carlos Nihelton
committed
Slightly modernizing
This theme predates hugo security extensions. Also since 0.120 the syntax .Site.IsServer has been deprecated.
1 parent 16fb3cd commit e92cff8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

exampleSite/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ paginate = 3
2121
[markup.highlight]
2222
# Disable Goldmark Chroma syntax highlighter
2323
codeFences = false
24+
[security.exec]
25+
allow= ['^dart-sass-embedded$', '^go$', '^npx$', '^postcss$', '^asciidoctor$']
26+
osEnv= ['(?i)^((HTTPS?|NO)_PROXY|PATH(EXT)?|APPDATA|TE?MP|TERM|GO\w+|GEM_PATH|GEM_HOME)$']

layouts/partials/footer-scripts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
hljs.highlightBlock(node)
1515
})
1616
</script>
17-
{{ if not .Site.IsServer -}}
17+
{{ if not hugo.IsServer -}}
1818
{{ template "_internal/google_analytics.html" . }}
1919
{{- end }}

0 commit comments

Comments
 (0)