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 | |
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')
-rw-r--r-- | layouts/partials/footer.html | 6 | ||||
-rw-r--r-- | layouts/partials/header.html | 2 | ||||
-rw-r--r-- | layouts/partials/slideout.html | 2 |
3 files changed, 7 insertions, 3 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"> diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 57cf431..3592e88 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -1,5 +1,5 @@ <div class="logo-wrapper"> - <a href="{{ "/" | relURL }}" class="logo"> + <a href="{{ "/" | relLangURL }}" class="logo"> {{- if .Site.Params.logoTitle -}} {{ .Site.Params.logoTitle }} {{- else -}} diff --git a/layouts/partials/slideout.html b/layouts/partials/slideout.html index e8cebd3..42ed13e 100644 --- a/layouts/partials/slideout.html +++ b/layouts/partials/slideout.html @@ -1,6 +1,6 @@ <div id="mobile-navbar" class="mobile-navbar"> <div class="mobile-header-logo"> - <a href="{{ "/" | relURL }}" class="logo"> + <a href="{{ "/" | relLangURL }}" class="logo"> {{- if .Site.Params.logoTitle -}} {{ .Site.Params.logoTitle }} {{- else -}} |