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