proper rss feed generate

This commit is contained in:
zzossig 2020-02-14 20:34:16 +09:00
parent 3639584f9e
commit ed7946c120
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
{{ if $.Param "showFeedLinks" }}
<a href="{{ .Permalink }}/index.xml" type="application/rss+xml" title="rss" aria-label="RSS Feed Link">
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
<a href="{{ .FirstSection.Permalink }}/index.xml" type="application/rss+xml" title="RSS" aria-label="RSS Feed Link">
{{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }}
</a>
{{ end }}
{{ end }}