.FirstSection error fix

#195
This commit is contained in:
zzossig 2020-02-22 12:06:09 +09:00
parent 0f11b8e333
commit 50c11aa7c8
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
{{ $exclude := slice "tags" "series" "categories" }}
{{ if not (in $exclude .Type) }}
<a href="{{ .FirstSection.Permalink }}/index.xml" type="application/rss+xml" title="RSS" aria-label="RSS Feed Link">
<a href="{{ .CurrentSection.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>
{{ else }}