consider real rss feed link (baseName) for social icon #136

This commit is contained in:
Dmitry Kolosov 2022-01-28 19:32:57 +03:00
parent 2f24c40515
commit 0a9b5ae9bb

View File

@ -25,12 +25,13 @@
{{ end }}
{{ if .Site.Params.rssAsSocialIcon }}
{{ $url := "/index.xml" | relLangURL }}
<li>
<a {{ printf "href=%q" $url | safeHTMLAttr }} title="RSS" rel="me">
{{ partial "font-awesome.html" (dict "iconName" "rss" "custom" false) }}
</a>
</li>
{{ with .Site.Home.OutputFormats.Get "rss" -}}
<li>
<a {{ printf "href=%q" .Permalink | safeHTMLAttr }} title="RSS" rel="me">
{{ partial "font-awesome.html" (dict "iconName" "rss" "custom" false) }}
</a>
</li>
{{ end -}}
{{ end }}
</ul>