diff options
author | Yong-Siang Shih (Shaform) <shaform@gmail.com> | 2018-07-16 12:30:17 +0300 |
---|---|---|
committer | Chen Xianmin <xianmin12@gmail.com> | 2018-07-16 12:30:17 +0300 |
commit | b2548bd81d7e8de3cad43487d4312681e8bb727f (patch) | |
tree | c88c50434f75906d9928289ae453d4c7de9b67db | |
parent | b8c640535806cb23a75fc163f26278d351b4ba8e (diff) |
link to correct RSS URL in Multilingual site, fix #75 (#82)
-rw-r--r-- | layouts/partials/footer.html | 8 |
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> |