Skip to content

Commit

Permalink
fix #403: Exclude the rss link in the post pages as it's empty. (#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatacold committed Jul 11, 2024
1 parent 484d57f commit bd5ebaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,17 @@
{{- end -}}
{{ end }}
{{ if .Site.Params.rss }}
{{ with .OutputFormats.Get "RSS" }}
<li>
<a href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="RSS">
<a href="{{ .RelPermalink }}" title="RSS">
<span class="fa-stack fa-lg">
<i class="fas fa-circle fa-stack-2x"></i>
<i class="fas fa-rss fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
{{ end }}
{{ end }}
</ul>
<p class="credits copyright text-muted">
{{ if .Site.Params.author.name }}
Expand Down

0 comments on commit bd5ebaa

Please sign in to comment.