Browse Source

fix non-default language rss links

master
Eorn 2 years ago
parent
commit
8fdf270268
  1. 2
      layouts/partials/header.html
  2. 7
      layouts/partials/nav.html

2
layouts/partials/header.html

@ -14,7 +14,7 @@
{{ end }}
{{ if .Site.Params.rss }}
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ "/index.xml" | absLangURL }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ template "_internal/opengraph.html" . }}

7
layouts/partials/nav.html

@ -22,6 +22,13 @@
</a>
{{- end -}}
{{- end -}}
<a class="level-item" aria-label="rss" target="_blank" rel="noopener" href="{{ "/index.xml" | absLangURL }}">
<span class="icon rss">
<i>
{{- partial "svg/icons" "rss" -}}
</i>
</span>
</a>
{{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }}

Loading…
Cancel
Save