Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:(lang): enable to add translating about page #432

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ languages:
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-beta
about: true

it:
weight: 2
Expand All @@ -62,6 +63,7 @@ languages:
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-beta
about: false

pl:
weight: 3
Expand All @@ -79,6 +81,7 @@ languages:
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-beta
about: false

# zh-cn/zh-tw/zh-chs are legacy
# zh-hans specification usage from IETF language tag
Expand All @@ -102,6 +105,7 @@ languages:
- v1.0.0-beta.2
- v1.0.0-beta.1
- v1.0.0-beta
about: false
zh-hant:
weight: 5
languageName: "繁體中文"
Expand All @@ -119,6 +123,7 @@ languages:
list:
- v1.0.0
- v1.0.0-beta.4
about: false

es:
weight: 6
Expand All @@ -135,6 +140,7 @@ languages:
list:
- v1.0.0-beta.3
- v1.0.0-beta.2
about: false

ru:
weight: 7
Expand All @@ -155,6 +161,7 @@ languages:
- v1.0.0-beta.4
- v1.0.0-beta.3
- v1.0.0-beta.2
about: false

ja:
weight: 8
Expand All @@ -173,6 +180,7 @@ languages:
list:
- v1.0.0
- v1.0.0-beta.4
about: false

fr:
weight: 9
Expand All @@ -189,6 +197,7 @@ languages:
list:
- v1.0.0
- v1.0.0-beta.2
about: false

ko:
weight: 10
Expand All @@ -206,6 +215,7 @@ languages:
current: v1.0.0-beta.4
list:
- v1.0.0-beta.4
about: false

pt-br:
weight: 11
Expand All @@ -225,6 +235,7 @@ languages:
- v1.0.0
- v1.0.0-beta.4
- v1.0.0-beta.3
about: false

id:
weight: 12
Expand All @@ -244,6 +255,7 @@ languages:
- v1.0.0
- v1.0.0-beta.4
- v1.0.0
about: false

hy:
weight: 13
Expand All @@ -262,6 +274,7 @@ languages:
list:
- v1.0.0-beta.4
- v1.0.0-beta.3
about: false

de:
weight: 14
Expand All @@ -279,6 +292,7 @@ languages:
current: v1.0.0
list:
- v1.0.0
about: false

th:
weight: 15
Expand All @@ -296,6 +310,7 @@ languages:
current: v1.0.0
list:
- v1.0.0
about: false

uk:
weight: 16
Expand All @@ -313,6 +328,7 @@ languages:
current: v1.0.0
list:
- v1.0.0
about: false

be:
weight: 17
Expand All @@ -330,3 +346,4 @@ languages:
current: v1.0.0
list:
- v1.0.0
about: false
2 changes: 1 addition & 1 deletion themes/conventional-commits/layouts/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</li>
<li class="header__menu-item dropdown">
<button class="dropdown__label">
<a href="/en/about" class="no-style-a">About</a>
<a href="{{ if .Site.Params.About }}/{{ .Page.Language }}/about{{ else }}/en/about{{ end }}" class="no-style-a">About</a>
</button>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion themes/conventional-commits/theme.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ description = "Hugo theme for Conventional Commits website"
homepage = "https://github.com/lorenzodianni/hugo-conventional-commits-theme"
tags = []
features = []
min_version = "0.42"
min_version = "0.43"