Loading config.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,4 @@ security: - "^HUGO_" - "^CI$" - "^CI_COMMIT_SHORT_SHA$" - "^CI_JOB_URL$" layouts/partials/build-info.html +4 −1 Original line number Diff line number Diff line {{ $builtLabel := printf "built %s UTC" (now.UTC.Format "2006-01-02 15:04") -}} {{ with getenv "CI_COMMIT_SHORT_SHA" }}<a href="{{ site.Params.gitlab_path }}/commit/{{ . }}" >{{ . }}</a >{{ else }}dev{{ end }} · built {{ now.UTC.Format "2006-01-02 15:04" }} UTC >{{ else }}dev{{ end }} · {{ with getenv "CI_JOB_URL" }}<a href="{{ . }}" >{{ $builtLabel }}</a >{{ else }}{{ $builtLabel }}{{ end }} Loading
config.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -43,3 +43,4 @@ security: - "^HUGO_" - "^CI$" - "^CI_COMMIT_SHORT_SHA$" - "^CI_JOB_URL$"
layouts/partials/build-info.html +4 −1 Original line number Diff line number Diff line {{ $builtLabel := printf "built %s UTC" (now.UTC.Format "2006-01-02 15:04") -}} {{ with getenv "CI_COMMIT_SHORT_SHA" }}<a href="{{ site.Params.gitlab_path }}/commit/{{ . }}" >{{ . }}</a >{{ else }}dev{{ end }} · built {{ now.UTC.Format "2006-01-02 15:04" }} UTC >{{ else }}dev{{ end }} · {{ with getenv "CI_JOB_URL" }}<a href="{{ . }}" >{{ $builtLabel }}</a >{{ else }}{{ $builtLabel }}{{ end }}