add 0.65.2 version check for error

This commit is contained in:
zzossig 2020-02-22 22:31:04 +09:00
parent 9f75263921
commit b8abd96ae0
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="{{ .CurrentSection.FirstSection.Permalink }}/index.xml" type="application/rss+xml" title="RSS" aria-label="RSS Feed Link">
<a href="{{ if eq hugo.Version "0.65.2" }}{{ .CurrentSection.FirstSection.Permalink }}{{ else }}{{ .FirstSection.Permalink }}{{ end }}/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 }}