add 0.65.2 version check for error
This commit is contained in:
parent
9f75263921
commit
b8abd96ae0
|
@ -2,7 +2,7 @@
|
||||||
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
|
{{ if not (in ($.Param "notAllowedTypesInHomeFeed") .Type) }}
|
||||||
{{ $exclude := slice "tags" "series" "categories" }}
|
{{ $exclude := slice "tags" "series" "categories" }}
|
||||||
{{ if not (in $exclude .Type) }}
|
{{ 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) }}
|
{{ partial "svgs/etc/rss.svg" (dict "width" 32 "height" 32) }}
|
||||||
</a>
|
</a>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
Loading…
Reference in New Issue