Skip to content

Commit

Permalink
fix: use first section title as the docs nav title (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang authored Apr 2, 2024
1 parent 37c07d3 commit 4e3ebb2
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion i18n/en.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "Browser docs"
other = "Browse {{ . }}"

[in_this_section]
other = "In this section"
Expand Down
2 changes: 1 addition & 1 deletion i18n/es.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "Explorar documentos"
other = "Explorar {{ . }}"

[in_this_section]
other = "En esta sección"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ko.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "문서 탐색"
other = "{{ . }} 탐색"

[in_this_section]
other = "글 목록"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ms.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "Navigasi dokumen"
other = "Navigasi {{ . }}"

[in_this_section]
other = "Dalam bahagian ini"
Expand Down
2 changes: 1 addition & 1 deletion i18n/pt-br.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "Navegar pelos documentos"
other = "Navegar pelos {{ . }}"

[in_this_section]
other = "Nesta seção"
Expand Down
2 changes: 1 addition & 1 deletion i18n/ru.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "Смотреть документацию"
other = "Смотреть {{ . }}"

[in_this_section]
other = "В этой секции"
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh-hans.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "浏览文档"
other = "浏览{{ . }}"

[in_this_section]
other = "本节内容"
Expand Down
2 changes: 1 addition & 1 deletion i18n/zh-hant.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[docs_nav_title]
other = "瀏覽文檔"
other = "瀏覽{{ . }}"

[in_this_section]
other = "本節內容"
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/hb/modules/docs/nav.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
aria-labelledby="hb-docs-nav-label">
<div class="offcanvas-header border-bottom">
<h5 class="offcanvas-title" id="hb-docs-nav-label">
{{- i18n "docs_nav_title" -}}
{{- i18n "docs_nav_title" .FirstSection.Title -}}
</h5>
<button
type="button"
Expand Down

0 comments on commit 4e3ebb2

Please sign in to comment.