Rename param related to relatedposts.

This commit is contained in:
Fredrik Jonsson 2021-02-24 23:18:09 +01:00
commit 0d39a55736
3 changed files with 4 additions and 4 deletions

View file

@ -190,7 +190,7 @@ params:
privacyPolicyUrl: "" # If set will add link to cookie consent form. privacyPolicyUrl: "" # If set will add link to cookie consent form.
realfavicongenerator: # If full set of favicons, site manifest etc. exists, default false. 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. searchLimit: 20 # Max number of search hits, default 20.
sidebar: true # Show a sidebar to the right sidebar: true # Show a sidebar to the right
submitted: true # Show author and date information for a post. submitted: true # Show author and date information for a post.

View file

@ -9,7 +9,7 @@
<div class="content"> <div class="content">
{{ .Content }} {{ .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 -}} {{ if ne .Lastmod .Date }}{{ partial "dates.html" . }}{{ end -}}
</div> </div>