feat(home): add custom content for home page (#248)

This commit is contained in:
Dillon
2020-04-22 17:50:30 +08:00
committed by GitHub
parent a0ab272f7d
commit 3c38d54a87
20 changed files with 148 additions and 47 deletions

View File

@@ -13,8 +13,8 @@
{{- if eq hugo.Environment "production" -}}
{{- .Scratch.Set "cdn" .Site.Params.cdn -}}
{{- .Scratch.Set "fingerprint" .Site.Params.fingerprint -}}
{{- else -}}
{{- $params = dict "comment" nil | merge $params -}}
{{- .Scratch.Set "analytics" .Site.Params.analytics -}}
{{- .Scratch.Set "comment" $params.comment -}}
{{- end -}}
{{- .Scratch.Set "params" $params -}}