diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 2 | ||||
-rw-r--r-- | layouts/partials/comment-utterances.html | 2 | ||||
-rw-r--r-- | layouts/partials/footer.html | 4 | ||||
-rw-r--r-- | layouts/partials/post-meta.html | 2 | ||||
-rw-r--r-- | layouts/partials/scripts.html | 2 | ||||
-rw-r--r-- | layouts/partials/sidebar.html | 8 |
6 files changed, 10 insertions, 10 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index edd7c70..e7b9278 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -17,7 +17,7 @@ {{ if ne .Params.noLicense true }} <div class="markdown-body" id="license"> <blockquote> - <p>除特殊注明部分,本站内容采用 <a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a> 进行许可。</p> + <p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}" target="_blank">{{ .Site.Params.license }}</a>{{ i18n "postCopyrightEnd" }}</p> </blockquote> </div> {{ end }} diff --git a/layouts/partials/comment-utterances.html b/layouts/partials/comment-utterances.html index 05b5ba0..f515a72 100644 --- a/layouts/partials/comment-utterances.html +++ b/layouts/partials/comment-utterances.html @@ -2,7 +2,7 @@ <div id="container-loading-bar"> <div id="loading-bar"></div> </div> - <p>正在加载评论区</p> + <p>{{ i18n "postCommentLoading" }}</p> </div> <div id="post-comment"> <script src="{{ .Site.Params.cdnUtterancesJS }}" repo="{{ .Site.Params.utterancesRepo }}" issue-term="{{ .Site.Params.utterancesIssueTerm }}" theme="{{ .Site.Params.utterancesTheme }}" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 99cb591..76f3fff 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,8 +2,8 @@ <div class="container-lg text-center"> <p> © {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a> | - Powered by <a href="https://github.com/amzrk2/hugo-theme-fuji/" target="_blank">Fuji</a> - & <a href="https://gohugo.io/" target="_blank">Hugo</a> + {{ i18n "footerPoweredFront" }}<a href="https://github.com/amzrk2/hugo-theme-fuji/" target="_blank">Fuji</a> + & <a href="https://gohugo.io/" target="_blank">Hugo</a>{{ i18n "footerPoweredEnd" }} </p> </div> </footer>
\ No newline at end of file diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html index 9d9832d..3e90686 100644 --- a/layouts/partials/post-meta.html +++ b/layouts/partials/post-meta.html @@ -7,6 +7,6 @@ <a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}/">{{ . }}</a> {{ end }} {{ else }} - <span>无标签</span> + <span>{{ i18n "postMetaNoTag" }}</span> {{ end }} </span>
\ No newline at end of file diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index 5138899..eceda37 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -24,7 +24,7 @@ if (commentLoadingTime > 20) { clearInterval(commentCheckInterval); $('#post-comment').hide(); - $('#post-loading p').text('评论区加载失败'); + $('#post-loading p').text('{{ i18n "postCommentLoadingFailed" }}'); } return; } else { diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index fae74ce..61f2868 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,5 +1,5 @@ <div id="widget-pages"> - <h5>页面</h5> + <h5>{{ i18n "sidebarPages" }}</h5> <ul> {{ $currentPage := . }} {{ range .Site.Menus.nav }} @@ -10,7 +10,7 @@ </ul> </div> <div id="widget-tags"> - <h5>标签</h5> + <h5>{{ i18n "sidebarTags" }}</h5> <div> {{ range .Site.Taxonomies.tags }} <span> @@ -20,7 +20,7 @@ </div> </div> <div id="widget-links"> - <h5>链接</h5> + <h5>{{ i18n "sidebarLinks" }}</h5> <ul> {{ range .Site.Menus.link }} <li> @@ -31,7 +31,7 @@ </div> {{ with .Site.Params.bgmImageChart }} <div id="widget-bgm"> - <h5>番剧</h5> + <h5>{{ i18n "sidebarBangumiChart" }}</h5> <img class="lazy" src="{{ $.Site.Params.cdnLazyloadSRC }}" data-src="https://bgm.tv/chart/img/{{ . }}" /> </div> {{ end }}
\ No newline at end of file |