update: "rssIcon" defaults to "true" && "readNextPosts" defaults to "3"

This commit is contained in:
Junyi Hou 2024-04-26 12:46:52 +08:00
parent e7a93e2088
commit 893f4a77a4
2 changed files with 13 additions and 3 deletions

View file

@ -24,7 +24,12 @@
{{ end }}
{{ end }}
{{ if .Site.Params.rssAsSocialIcon }}
{{ $rssIcon := true }}
{{ if isset .Site.Params "rssIcon" }}
{{ $rssIcon = .Site.Params.rssIcon }}
{{ end }}
{{ if $rssIcon }}
{{ with .Site.Home.OutputFormats.Get "rss" -}}
<li>
<a {{ printf "href=%q" .RelPermalink | safeHTMLAttr }} title="RSS" rel="me">