From 0d39a55736ad0f9965239bb9cb2b7ab3be99628b Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Wed, 24 Feb 2021 23:18:09 +0100 Subject: [PATCH] Rename param related to relatedposts. --- README.md | 2 +- layouts/_default/single.html | 2 +- layouts/partials/meta.html | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 45bc9e2..d0a1e4e 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ params: privacyPolicyUrl: "" # If set will add link to cookie consent form. realfavicongenerator: # If full set of favicons, site manifest etc. exists, default false. - related: true # Show related post under a "See also" section, default false. + relatedposts: true # Show related posts under a "See also" section, default false. searchLimit: 20 # Max number of search hits, default 20. sidebar: true # Show a sidebar to the right submitted: true # Show author and date information for a post. diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 0842fdb..eba2ad9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,7 +9,7 @@
{{ .Content }} -{{ if $.Param "related" | default false }}{{ partial "related.html" . }}{{ end -}} +{{ if $.Param "relatedposts" | default false }}{{ partial "related.html" . }}{{ end -}} {{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index d124687..a8b5c8a 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -2,8 +2,8 @@ {{ end -}} - - + + {{ with $.Param "author" }}{{ end }} {{ with $.Param "contact" }}{{ end }}