diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-01-30 21:26:46 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-01-30 21:26:46 +0800 |
commit | 084f8cb2c350f44fd99bf0fc76beadbfc92e9f02 (patch) | |
tree | 31d9df6a69f2bcf5678c7882239a20d0862cea70 /layouts/partials/footer.html | |
parent | dcff1e389f0474bf01bdacbad6313fbdadab5329 (diff) |
feat: support multilingual mode
* fix: wrong lang attribute in multilingual mode
- baseof.html
* fix: rss link in multilingual mode
- footer.html
* fix: wrong tags, categories, home link in multilingual mode
- other files ...
This relates to #25
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index e03ed24..287c65c 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -6,7 +6,11 @@ <a href="{{ $path | safeURL }}" class="iconfont icon-{{ $realName }}" title="{{ $realName }}"></a> {{- end }} {{- end }} - <a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a> + {{ if .Site.LanguagePrefix -}} + <a href="{{ .Site.LanguagePrefix | absURL }}/index.xml" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a> + {{- else -}} + <a href="{{ .Site.RSSLink }}" type="application/rss+xml" class="iconfont icon-rss" title="rss"></a> + {{- end }} </div> <div class="copyright"> |