diff --git a/exampleSite/config/_default/config.toml b/exampleSite/config/_default/config.toml index 36bf13b8..a0665c27 100644 --- a/exampleSite/config/_default/config.toml +++ b/exampleSite/config/_default/config.toml @@ -45,3 +45,6 @@ timeout = "120s" [build] writeStats = true + +[security.funcs] + getenv = ['^HUGO_', '^CI$', 'PWD'] diff --git a/layouts/partials/docs/repo.html b/layouts/partials/docs/repo.html index e7aea1b7..015cd94f 100644 --- a/layouts/partials/docs/repo.html +++ b/layouts/partials/docs/repo.html @@ -12,7 +12,7 @@ {{- $branch := default "master" .branch -}} {{- $dateFormat := default "02/01/2006, 15:04:05 PM" .dateFormat -}} {{- $subPath := default "" .subPath -}} -{{- $contentDir := default "content" $.Site.Language.ContentDir -}} +{{- $root := partialCached "functions/working-directory" . }} {{- if $subPath -}}{{ $subPath = printf "/%s" $subPath }}{{- end -}}
@@ -27,7 +27,7 @@

{{ i18n "repo_ti