diff options
author | Fredrik Jonsson <frjo@xdeb.org> | 2021-02-25 01:18:09 +0300 |
---|---|---|
committer | Fredrik Jonsson <frjo@xdeb.org> | 2021-02-25 01:18:09 +0300 |
commit | 0d39a55736ad0f9965239bb9cb2b7ab3be99628b (patch) | |
tree | 14d34577f146529c74c46568dc60696cb42b8e4c | |
parent | 62c7a1d204f1f0534ca99b88d9b1306ea1b8fd92 (diff) |
Rename param related to relatedposts.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/meta.html | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -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 @@ <div class="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 -}} </div> 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 @@ <link rel="{{ .Rel }}" {{ printf "type=%q" .MediaType.Type | safeHTMLAttr }} title="{{ .Name }}" href="{{ .Permalink | safeURL }}"> {{ end -}} <meta name="description" content="{{ with (.Description | default (replaceRE "\n" " " (.Plain | truncate 170))) }}{{ . }}{{ end }}"> -<meta name="created" {{printf "content=%q" (.Date.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}> -<meta name="modified" {{printf "content=%q" (.Lastmod.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}> +<meta name="created" {{ printf "content=%q" (.Date.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}> +<meta name="modified" {{ printf "content=%q" (.Lastmod.Format "2006-01-02T15:04:05-0700") | safeHTMLAttr }}> {{ with $.Param "author" }}<meta name="author" content="{{ . }}">{{ end }} {{ with $.Param "contact" }}<meta name="contact" content="{{ . }}">{{ end }} <meta property="og:site_name" content="{{ .Site.Title }}"> |