Skip to content

Commit

Permalink
fix: RSS feed link in index header (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Habbie authored and igor-baiborodine committed Mar 27, 2023
1 parent 22d55ff commit a70f573
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions layouts/_default/baseof.html
Expand Up @@ -76,10 +76,11 @@

<script src="{{ "modernizr-simple.js" | relURL }}"></script>

{{ if .RelPermalink }}
<link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RelPermalink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ with .OutputFormats.Get "RSS" }}
<link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" />
<link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" />
{{end}}


{{ with .Params.original_url }}
<link rel="canonical" href="{{ . }}" />
Expand Down

0 comments on commit a70f573

Please sign in to comment.