From e5064066c133a8e302baa116960e125f9cace43e Mon Sep 17 00:00:00 2001 From: Phil Smith Date: Wed, 18 Dec 2019 23:32:29 -0800 Subject: Use $.Param instead of .Site.Params This allows params to be set in either site config or page front matter. --- layouts/partials/head.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'layouts/partials/head.html') diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 16e1b98..1bdc9db 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,13 +7,13 @@ {{ end }} - {{ with .Description | default .Site.Params.subtitle }} + {{ with .Description | default ($.Param "subtitle") }} {{ end }} - + @@ -23,14 +23,14 @@ {{ end }} - {{ with .Site.Params.twitter }} + {{ with ($.Param "twitter") }} {{ end }} {{ if .IsPage }} - {{ with .Site.Params.facebook }} + {{ with ($.Param "facebook") }} {{ end }} {{ else }} @@ -41,10 +41,10 @@ - {{ range .Site.Params.custom_css -}} + {{ range ($.Param "custom_css") -}} {{- end }} - {{- with .Site.Params.favicon }} + {{- with ($.Param "favicon") }} {{- end -}} {{ if eq .RelPermalink "/" }} -- cgit v1.2.3