fix non-default language rss links

This commit is contained in:
Eorn 2020-12-10 16:13:38 +01:00
parent 78cf457c06
commit 8fdf270268
2 changed files with 8 additions and 1 deletions

View file

@ -14,7 +14,7 @@
{{ end }} {{ end }}
{{ if .Site.Params.rss }} {{ 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 }} {{ end }}
{{ template "_internal/opengraph.html" . }} {{ template "_internal/opengraph.html" . }}

View file

@ -22,6 +22,13 @@
</a> </a>
{{- end -}} {{- end -}}
{{- 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 }} {{- range $.Site.Home.AllTranslations }}
<a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a> <a class="level-item" href="{{ .Permalink }}">{{ .Language.Lang }}</a>
{{- end }} {{- end }}