mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 20:13:31 +08:00
Merge branch 'master' into master
This commit is contained in:
commit
534ecda4f3
@ -11,7 +11,7 @@ disqusShortname: hugo-theme-stack
|
||||
googleAnalytics:
|
||||
|
||||
# Theme i18n support
|
||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, es, de, nl, it, th, el
|
||||
# Available values: en, fr, id, ja, ko, pt-br, zh-cn, zh-tw, es, de, nl, it, th, el, uk
|
||||
DefaultContentLanguage: en
|
||||
|
||||
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
||||
|
71
i18n/uk.yaml
Normal file
71
i18n/uk.yaml
Normal file
@ -0,0 +1,71 @@
|
||||
toggleMenu:
|
||||
other: Показати меню
|
||||
|
||||
darkMode:
|
||||
other: Темна тема
|
||||
|
||||
list:
|
||||
page:
|
||||
one: "{{ .Count }} сторінка"
|
||||
few: "{{ .Count }} сторінки"
|
||||
other: "{{ .Count }} сторінок"
|
||||
|
||||
section:
|
||||
other: Секція
|
||||
|
||||
subsection:
|
||||
one: Підсекція
|
||||
other: Підсекції
|
||||
|
||||
article:
|
||||
back:
|
||||
other: Назад
|
||||
|
||||
tableOfContents:
|
||||
other: Зміст
|
||||
|
||||
relatedContents:
|
||||
other: Схожі матеріали
|
||||
|
||||
lastUpdatedOn:
|
||||
other: Востаннє оновлено
|
||||
|
||||
readingTime:
|
||||
one: "Час читання: {{ .Count }} хв"
|
||||
other: "Час читання: {{ .Count }} хв"
|
||||
|
||||
notFound:
|
||||
title:
|
||||
other: Не знайдено
|
||||
|
||||
subtitle:
|
||||
other: Ця сторінка не існує
|
||||
|
||||
widget:
|
||||
archives:
|
||||
title:
|
||||
other: Архіви
|
||||
|
||||
more:
|
||||
other: Більше
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: Теґи
|
||||
|
||||
search:
|
||||
title:
|
||||
other: Пошук
|
||||
|
||||
placeholder:
|
||||
other: Напишіть що-небудь...
|
||||
|
||||
resultTitle:
|
||||
other: "#PAGES_COUNT сторінок (#TIME_SECONDS секунд)"
|
||||
|
||||
footer:
|
||||
builtWith:
|
||||
other: Створено з {{ .Generator }}
|
||||
|
||||
designedBy:
|
||||
other: Тема {{ .Theme }}, дизайн {{ .DesignedBy }}
|
49
i18n/zh-TW.yaml
Normal file
49
i18n/zh-TW.yaml
Normal file
@ -0,0 +1,49 @@
|
||||
toggleMenu:
|
||||
other: 切換選單
|
||||
|
||||
darkMode:
|
||||
other: 夜晚模式
|
||||
|
||||
article:
|
||||
back:
|
||||
other: 返回
|
||||
|
||||
tableOfContents:
|
||||
other: 目錄
|
||||
|
||||
relatedContents:
|
||||
other: 相關文章
|
||||
|
||||
lastUpdatedOn:
|
||||
other: 最後更新
|
||||
|
||||
readingTime:
|
||||
other: "閱讀時間: {{ .Count }} 分鐘"
|
||||
|
||||
notFound:
|
||||
title:
|
||||
other: 404 錯誤
|
||||
subtitle:
|
||||
other: 頁面不存在
|
||||
|
||||
widget:
|
||||
archives:
|
||||
title:
|
||||
other: 紀錄
|
||||
|
||||
more:
|
||||
other: 更多
|
||||
|
||||
tagCloud:
|
||||
title:
|
||||
other: 標籤雲
|
||||
|
||||
search:
|
||||
title:
|
||||
other: 搜尋
|
||||
|
||||
placeholder:
|
||||
other: 輸入關鍵字...
|
||||
|
||||
resultTitle:
|
||||
other: "#PAGES_COUNT 個結果 (用時 #TIME_SECONDS 秒)"
|
@ -1,14 +1,11 @@
|
||||
{{- $host := default "https://cusdis.com" .Site.Params.comments.cusdis.host -}}
|
||||
<div id="cusdis_thread"
|
||||
{{ if .Site.Params.comments.cusdis.host }}
|
||||
data-host="{{ .Site.Params.comments.cusdis.host }}"
|
||||
{{ else }}
|
||||
data-host="https://cusdis.com"
|
||||
{{ end }}
|
||||
data-host="{{ $host }}"
|
||||
data-app-id="{{ .Site.Params.comments.cusdis.id }}"
|
||||
data-page-id="{{ .File.UniqueID }}"
|
||||
data-page-url="{{ .Permalink }}"
|
||||
data-page-title="{{ .Title }}"></div>
|
||||
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
|
||||
<script async defer src="{{ $host }}/js/cusdis.es.js"></script>
|
||||
|
||||
<script>
|
||||
function setCusdisTheme(theme) {
|
||||
@ -21,4 +18,4 @@
|
||||
window.addEventListener('onColorSchemeChange', (e) => {
|
||||
setCusdisTheme(e.detail)
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{{- $ThemeVersion := "3.4.0" -}}
|
||||
{{- $ThemeVersion := "3.5.0" -}}
|
||||
<footer class="site-footer">
|
||||
<section class="copyright">
|
||||
©
|
||||
|
@ -38,7 +38,7 @@
|
||||
{{ range . }}
|
||||
<li>
|
||||
<a
|
||||
href='{{ .URL | relLangURL }}'
|
||||
href='{{ .URL }}'
|
||||
{{ if eq (default true .Params.newTab) true }}target="_blank"{{ end }}
|
||||
{{ with .Name }}title="{{ . }}"{{ end }}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user