Skip to content

Commit

Permalink
Fix RSS in Nav partial (#368)
Browse files Browse the repository at this point in the history
`.RSSLink` is no longer supported. This change updates the nav.html
partial to use the replacement.
  • Loading branch information
emembrives authored Apr 14, 2024
1 parent 4e5a636 commit 65aa916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
{{ end }}
{{ end }}

{{ if and .Site.Params.showRSSButton .Site.RSSLink }}
<a class="navbar-item" href="{{ .Site.RSSLink }}"><i class="fas fa-rss"></i></a>
{{ if and .Site.Params.showRSSButton }}
<a class="navbar-item" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}"><i class="fas fa-rss"></i></a>
{{ end }}
{{ end }}
</div>
Expand Down

0 comments on commit 65aa916

Please sign in to comment.