Update head.html

This commit is contained in:
deovaliandro 2018-09-20 23:34:32 +08:00 committed by GitHub
parent c9ceedca9f
commit 8f137557f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@
{{ $cdn_url := ""}} {{ $cdn_url := ""}}
{{ if eq ( getenv "HUGO_ENV" ) "production" }} {{ if eq ( getenv "HUGO_ENV" ) "production" }}
{{ with .Site.Params.cdn_url }} {{ with .Site.Params.cdn_url }}
{{ $cdn_url = .}} {{ $cdn_url := .}}
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ .Scratch.Set "cdn_url" $cdn_url }} {{ .Scratch.Set "cdn_url" $cdn_url }}