Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xianmin/hugo-theme-jane.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYong-Siang Shih (Shaform) <shaform@gmail.com>2018-07-16 12:30:17 +0300
committerChen Xianmin <xianmin12@gmail.com>2018-07-16 12:30:17 +0300
commitb2548bd81d7e8de3cad43487d4312681e8bb727f (patch)
treec88c50434f75906d9928289ae453d4c7de9b67db
parentb8c640535806cb23a75fc163f26278d351b4ba8e (diff)
link to correct RSS URL in Multilingual site, fix #75 (#82)
-rw-r--r--layouts/partials/footer.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 22f6a72..c5c0312 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -7,9 +7,13 @@
</a>
{{- end }}
{{- end }}
- <a href="{{ .Site.RSSLink }}" rel="noopener" type="application/rss+xml" class="iconfont icon-rss"
+ {{ with .Site.GetPage "home" -}}
+ {{- with .OutputFormats.Get "RSS" -}}
+ <a href="{{ .Permalink }}" rel="noopener {{ .Rel }}" type="{{ .MediaType.Type }}" class="iconfont icon-rss"
title="rss" target="_blank">
</a>
+ {{ end -}}
+ {{- end -}}
</div>
<div class="copyright">
@@ -35,4 +39,4 @@
<span class="author">{{if .Site.Copyright }}{{ .Site.Copyright | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
{{- end -}}
</span>
-</div> \ No newline at end of file
+</div>