mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
Merge branch 'master' into master
This commit is contained in:
commit
a573f71bee
@ -5,6 +5,14 @@ paginate: 3
|
|||||||
title: Example Site
|
title: Example Site
|
||||||
copyright: Example Person
|
copyright: Example Person
|
||||||
|
|
||||||
|
# Theme i18n support
|
||||||
|
# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
|
||||||
|
DefaultContentLanguage: en
|
||||||
|
|
||||||
|
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
||||||
|
# This will make .Summary and .WordCount behave correctly for CJK languages.
|
||||||
|
hasCJKLanguage: false
|
||||||
|
|
||||||
languages:
|
languages:
|
||||||
en:
|
en:
|
||||||
languageName: English
|
languageName: English
|
||||||
@ -26,19 +34,13 @@ languages:
|
|||||||
params:
|
params:
|
||||||
description: وصف تجريبي
|
description: وصف تجريبي
|
||||||
|
|
||||||
# Change it to your Disqus shortname before using
|
services:
|
||||||
disqusShortname: hugo-theme-stack
|
# Change it to your Disqus shortname before using
|
||||||
|
disqus:
|
||||||
# GA Tracking ID
|
shortname: "hugo-theme-stack"
|
||||||
googleAnalytics:
|
# GA Tracking ID
|
||||||
|
googleAnalytics:
|
||||||
# Theme i18n support
|
id:
|
||||||
# Available values: ar, bn, ca, de, el, en, es, fr, hu, id, it, ja, ko, nl, pt-br, th, uk, zh-cn, zh-hk, zh-tw
|
|
||||||
DefaultContentLanguage: en
|
|
||||||
|
|
||||||
# Set hasCJKLanguage to true if DefaultContentLanguage is in [zh-cn ja ko]
|
|
||||||
# This will make .Summary and .WordCount behave correctly for CJK languages.
|
|
||||||
hasCJKLanguage: false
|
|
||||||
|
|
||||||
permalinks:
|
permalinks:
|
||||||
post: /p/:slug/
|
post: /p/:slug/
|
||||||
|
72
i18n/be.yaml
Normal file
72
i18n/be.yaml
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
toggleMenu:
|
||||||
|
other: Паказаць/схаваць меню
|
||||||
|
|
||||||
|
darkMode:
|
||||||
|
other: Цёмны рэжым
|
||||||
|
|
||||||
|
list:
|
||||||
|
page:
|
||||||
|
one: "{{ .Count }} старонка"
|
||||||
|
few: "{{ .Count }} старонкі"
|
||||||
|
many: "{{ .Count }} старонак"
|
||||||
|
other: "{{ .Count }} старонкі"
|
||||||
|
|
||||||
|
section:
|
||||||
|
other: Раздзел
|
||||||
|
|
||||||
|
subsection:
|
||||||
|
one: Падраздзел
|
||||||
|
few: Падраздзелы
|
||||||
|
many: Падраздзелы
|
||||||
|
other: Падраздзелы
|
||||||
|
|
||||||
|
article:
|
||||||
|
back:
|
||||||
|
other: Назад
|
||||||
|
|
||||||
|
relatedContent:
|
||||||
|
other: Таксама рэкамендуем
|
||||||
|
|
||||||
|
lastUpdatedOn:
|
||||||
|
other: Абноўлена
|
||||||
|
|
||||||
|
tableOfContents:
|
||||||
|
other: Змест
|
||||||
|
|
||||||
|
readingTime:
|
||||||
|
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 }}
|
@ -4,7 +4,10 @@
|
|||||||
<aside class="sidebar right-sidebar sticky">
|
<aside class="sidebar right-sidebar sticky">
|
||||||
{{ range $widget := . }}
|
{{ range $widget := . }}
|
||||||
{{ if templates.Exists (printf "partials/widget/%s.html" .type) }}
|
{{ if templates.Exists (printf "partials/widget/%s.html" .type) }}
|
||||||
{{ partial (printf "widget/%s" .type) (dict "Context" $context "Params" .params) }}
|
<!-- Ensure that the `params` is not nil -->
|
||||||
|
{{- $params := default dict .params -}}
|
||||||
|
|
||||||
|
{{ partial (printf "widget/%s" .type) (dict "Context" $context "Params" $params) }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ warnf "Widget %s not found" .type }}
|
{{ warnf "Widget %s not found" .type }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
Reference in New Issue
Block a user