mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
nav: rework edit button #151
This commit is contained in:
parent
6f8239ca64
commit
949429faab
18 changed files with 18 additions and 18 deletions
|
@ -37,7 +37,7 @@ To get support, feel free to open a new [discussion topic](https://github.com/Mc
|
|||
|
||||
## Become a contributor
|
||||
|
||||
Feel free to update this documentation by just clicking the **Edit this page** link displayed on top right of each page. Your changes will be deployed automatically once they were reviewed.
|
||||
Feel free to update this documentation by just clicking the **Edit** link displayed on top right of each page. Your changes will be deployed automatically once they were reviewed.
|
||||
|
||||
You are most welcome to contribute bugfixes or even new features to the source code by making pull requests to the [official repository](https://github.com/McShelby/hugo-theme-relearn) via GitHub. Please visit the [contribution guidelines](https://github.com/McShelby/hugo-theme-relearn/blob/main/.github/contributing.md) first.
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ Note that some of these parameters are explained in details in other sections of
|
|||
# menu; if no setting is given, the first menu level is set to false, all others to true;
|
||||
# this can be overridden in the pages frontmatter
|
||||
alwaysopen = true
|
||||
# Prefix URL to edit current page. Will display an "Edit this page" button on top right hand corner of every page.
|
||||
# Prefix URL to edit current page. Will display an "Edit" button on top right hand corner of every page.
|
||||
# Useful to give opportunity to people to create merge request for your doc.
|
||||
# See the config.toml file from this documentation site to have an example.
|
||||
editURL = ""
|
||||
|
|
|
@ -54,7 +54,7 @@ Use [slug](https://gohugo.io/content-management/multilingual/#translate-your-con
|
|||
|
||||
## Overwrite translation strings
|
||||
|
||||
Translations strings are used for common default values used in the theme (*Edit this page* button, *Search placeholder* and so on). Translations are available in English and Piratized English but you may use another language or want to override default values.
|
||||
Translations strings are used for common default values used in the theme (*Edit* button, *Search placeholder* and so on). Translations are available in English and Piratized English but you may use another language or want to override default values.
|
||||
|
||||
To override these values, create a new file in your local i18n folder `i18n/<idlanguage>.toml` and inspire yourself from the theme `themes/hugo-theme-relearn/i18n/en.toml`
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ other = ".¯\\_(ツ)_/¯أوبس. يبدو أن هذه الصفحة غير مو
|
|||
other = "الذهاب إلى الصفحة الرئيسية"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "تعديل هذه الصفحة"
|
||||
other = "حرر"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "المزيد"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Huch. Diese Seite scheint nicht zu existieren ¯\\_(ツ)_/¯."
|
|||
other = "Gehe zur Homepage"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Bearbeite diese Seite"
|
||||
other = "Bearbeiten"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Mehr"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Woops. Looks like this page doesn't exist ¯\\_(ツ)_/¯."
|
|||
other = "Go to homepage"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Edit this page"
|
||||
other = "Edit"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "More"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Ups. Parece que la página no existe ¯\\_(ツ)_/¯."
|
|||
other = "Ir al inicio"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Editar esta página"
|
||||
other = "Editar"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Más"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Oups. On dirait que cette page n'existe pas ¯\\_(ツ)_/¯"
|
|||
other = "Vers la page d'accueil"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Modifier la page"
|
||||
other = "Éditer"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Aller plus loin"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "यह पृष्ठ अभि अनुपलब्ध है!"
|
|||
other = "मुख्य पृष्ठ पर जाऐ"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "यह पृष्ठ संपादित करें"
|
||||
other = "संपादन करना"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "अधिक सामग्री दिखाएं"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "おっと。ページが見当たりません。 ¯\\_(ツ)_/¯."
|
|||
other = "ホームページへ行く"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "このページを編集"
|
||||
other = "編集"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "更に"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Blijkbaar bestaat deze pagina niet ¯\\_(ツ)_/¯."
|
|||
other = "Naar startpagina"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Deze pagina bewerken"
|
||||
other = "Bewerken"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Snelkoppelingen"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Woops. Looks like this plank doesn't exist ¯\\_(ツ)_/¯."
|
|||
other = "Go t' homeplank"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Edit this plank"
|
||||
other = "Edit"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Morrre"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Ops. Parece que a página não existe ¯\\_(ツ)_/¯."
|
|||
other = "Ir para o início"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Editar esta página"
|
||||
other = "Editar"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Mais"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Упс. Выглядит будто такой страницы нет
|
|||
other = "Перейти на главную"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Редактировать"
|
||||
other = "редактировать"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Еще"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Uups. Görünüşe göre böyle bir sayfa yok ¯\\_(ツ)_/¯"
|
|||
other = "Anasayfaya dön"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Sayfayı düzenle"
|
||||
other = "Düzenlemek"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Dahası Var"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "Tiếc quá! Có vẻ như trang này không tồn tại ¯\\_(ツ)_/¯
|
|||
other = "Đi đến trang chủ"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "Chỉnh sửa trang này"
|
||||
other = "Biên tập"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "Nội dung khác"
|
||||
|
|
|
@ -17,7 +17,7 @@ other = "哎哟。 看起来这个页面不存在 ¯\\_(ツ)_/¯。"
|
|||
other = "转到主页"
|
||||
|
||||
[Edit-this-page]
|
||||
other = "编辑当前页"
|
||||
other = "编辑"
|
||||
|
||||
[Shortcuts-Title]
|
||||
other = "更多"
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
{{- with $File.Path }}
|
||||
<div id="top-github-link">
|
||||
<a class="github-link" title='{{ T "Edit-this-page" }}' href="{{ $Site.Params.editURL }}{{ replace $File.Dir "\\" "/" }}{{ $File.LogicalName }}" target="blank">
|
||||
<i class="fas fa-code-branch"></i>
|
||||
<i class="fas fa-pencil"></i>
|
||||
</a>
|
||||
</div>
|
||||
{{- end }}
|
||||
|
|
Loading…
Reference in a new issue