diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-01-31 22:07:50 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-01-31 22:07:50 +0800 |
commit | 259d3dec1ae78e617b76ebeecd357218702d3d30 (patch) | |
tree | 088cb3abe91cba52395518ba1f080c7fdab5f85d /layouts/partials/footer.html | |
parent | be7b6c63a4fb89144e52659a145d09ddb03ba29a (diff) |
refactor: i18n
Diffstat (limited to 'layouts/partials/footer.html')
-rw-r--r-- | layouts/partials/footer.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 287c65c..b6a1fa5 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,4 +1,3 @@ -{{ $lang := .Site.Data.even.default -}} <div class="social-links"> {{- range $name, $path := .Site.Params.social }} {{- if $path }} @@ -15,11 +14,11 @@ <div class="copyright"> <span class="power-by"> - {{ (printf $lang.footer.powered `<a class="hexo-link" href="https://gohugo.io">Hugo</a>`) | safeHTML }} + {{ (printf (T "powered") `<a class="hexo-link" href="https://gohugo.io">Hugo</a>`) | safeHTML }} </span> <span class="division">|</span> <span class="theme-info"> - {{ $lang.footer.theme }} - + {{ T "theme" }} - <a class="theme-link" href="https://github.com/olOwOlo/hugo-theme-even">Even</a> </span> @@ -28,12 +27,12 @@ {{ $spinner := "img/spinner.svg" | relURL -}} {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.sitePV -}} {{ $valueSpan := printf `<span id="busuanzi_value_site_pv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}} - <span id="busuanzi_container_site_pv"> {{ printf $lang.traffic.sitePV $valueSpan | safeHTML }} </span> + <span id="busuanzi_container_site_pv"> {{ printf (T "sitePV") $valueSpan | safeHTML }} </span> {{ if .Site.Params.busuanzi.siteUV }}<span class="division">|</span>{{ end }} {{- end }} {{ if and .Site.Params.busuanzi.enable .Site.Params.busuanzi.siteUV -}} {{ $valueSpan := printf `<span id="busuanzi_value_site_uv"><img src="%s" alt="spinner.svg"/></span>` $spinner -}} - <span id="busuanzi_container_site_uv"> {{ printf $lang.traffic.siteUV $valueSpan | safeHTML }} </span> + <span id="busuanzi_container_site_uv"> {{ printf (T "siteUV") $valueSpan | safeHTML }} </span> {{- end }} </div> {{- end }} |