nav: rework edit button #151

This commit is contained in:
Sören Weber 2022-02-15 00:22:34 +01:00
parent 6f8239ca64
commit 949429faab
No known key found for this signature in database
GPG key ID: 07D17FF580AE7589
18 changed files with 18 additions and 18 deletions

View file

@ -37,7 +37,7 @@ To get support, feel free to open a new [discussion topic](https://github.com/Mc
## Become a contributor ## 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. 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.

View file

@ -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; # 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 # this can be overridden in the pages frontmatter
alwaysopen = true 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. # 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. # See the config.toml file from this documentation site to have an example.
editURL = "" editURL = ""

View file

@ -54,7 +54,7 @@ Use [slug](https://gohugo.io/content-management/multilingual/#translate-your-con
## Overwrite translation strings ## 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` 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`

View file

@ -17,7 +17,7 @@ other = ".¯\\_(ツ)_/¯أوبس. يبدو أن هذه الصفحة غير مو
other = "الذهاب إلى الصفحة الرئيسية" other = "الذهاب إلى الصفحة الرئيسية"
[Edit-this-page] [Edit-this-page]
other = "تعديل هذه الصفحة" other = "حرر"
[Shortcuts-Title] [Shortcuts-Title]
other = "المزيد" other = "المزيد"

View file

@ -17,7 +17,7 @@ other = "Huch. Diese Seite scheint nicht zu existieren ¯\\_(ツ)_/¯."
other = "Gehe zur Homepage" other = "Gehe zur Homepage"
[Edit-this-page] [Edit-this-page]
other = "Bearbeite diese Seite" other = "Bearbeiten"
[Shortcuts-Title] [Shortcuts-Title]
other = "Mehr" other = "Mehr"

View file

@ -17,7 +17,7 @@ other = "Woops. Looks like this page doesn't exist ¯\\_(ツ)_/¯."
other = "Go to homepage" other = "Go to homepage"
[Edit-this-page] [Edit-this-page]
other = "Edit this page" other = "Edit"
[Shortcuts-Title] [Shortcuts-Title]
other = "More" other = "More"

View file

@ -17,7 +17,7 @@ other = "Ups. Parece que la página no existe ¯\\_(ツ)_/¯."
other = "Ir al inicio" other = "Ir al inicio"
[Edit-this-page] [Edit-this-page]
other = "Editar esta página" other = "Editar"
[Shortcuts-Title] [Shortcuts-Title]
other = "Más" other = "Más"

View file

@ -17,7 +17,7 @@ other = "Oups. On dirait que cette page n'existe pas ¯\\_(ツ)_/¯"
other = "Vers la page d'accueil" other = "Vers la page d'accueil"
[Edit-this-page] [Edit-this-page]
other = "Modifier la page" other = "Éditer"
[Shortcuts-Title] [Shortcuts-Title]
other = "Aller plus loin" other = "Aller plus loin"

View file

@ -17,7 +17,7 @@ other = "यह पृष्ठ अभि अनुपलब्ध है!"
other = "मुख्य पृष्ठ पर जाऐ" other = "मुख्य पृष्ठ पर जाऐ"
[Edit-this-page] [Edit-this-page]
other = "यह पृष्ठ संपादित करें" other = "संपादन करना"
[Shortcuts-Title] [Shortcuts-Title]
other = "अधिक सामग्री दिखाएं" other = "अधिक सामग्री दिखाएं"

View file

@ -17,7 +17,7 @@ other = "おっと。ページが見当たりません。 ¯\\_(ツ)_/¯."
other = "ホームページへ行く" other = "ホームページへ行く"
[Edit-this-page] [Edit-this-page]
other = "このページを編集" other = "編集"
[Shortcuts-Title] [Shortcuts-Title]
other = "更に" other = "更に"

View file

@ -17,7 +17,7 @@ other = "Blijkbaar bestaat deze pagina niet ¯\\_(ツ)_/¯."
other = "Naar startpagina" other = "Naar startpagina"
[Edit-this-page] [Edit-this-page]
other = "Deze pagina bewerken" other = "Bewerken"
[Shortcuts-Title] [Shortcuts-Title]
other = "Snelkoppelingen" other = "Snelkoppelingen"

View file

@ -17,7 +17,7 @@ other = "Woops. Looks like this plank doesn't exist ¯\\_(ツ)_/¯."
other = "Go t' homeplank" other = "Go t' homeplank"
[Edit-this-page] [Edit-this-page]
other = "Edit this plank" other = "Edit"
[Shortcuts-Title] [Shortcuts-Title]
other = "Morrre" other = "Morrre"

View file

@ -17,7 +17,7 @@ other = "Ops. Parece que a página não existe ¯\\_(ツ)_/¯."
other = "Ir para o início" other = "Ir para o início"
[Edit-this-page] [Edit-this-page]
other = "Editar esta página" other = "Editar"
[Shortcuts-Title] [Shortcuts-Title]
other = "Mais" other = "Mais"

View file

@ -17,7 +17,7 @@ other = "Упс. Выглядит будто такой страницы нет
other = "Перейти на главную" other = "Перейти на главную"
[Edit-this-page] [Edit-this-page]
other = "Редактировать" other = "редактировать"
[Shortcuts-Title] [Shortcuts-Title]
other = "Еще" other = "Еще"

View file

@ -17,7 +17,7 @@ other = "Uups. Görünüşe göre böyle bir sayfa yok ¯\\_(ツ)_/¯"
other = "Anasayfaya dön" other = "Anasayfaya dön"
[Edit-this-page] [Edit-this-page]
other = "Sayfayı düzenle" other = "Düzenlemek"
[Shortcuts-Title] [Shortcuts-Title]
other = "Dahası Var" other = "Dahası Var"

View file

@ -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ủ" other = "Đi đến trang chủ"
[Edit-this-page] [Edit-this-page]
other = "Chỉnh sửa trang này" other = "Biên tập"
[Shortcuts-Title] [Shortcuts-Title]
other = "Nội dung khác" other = "Nội dung khác"

View file

@ -17,7 +17,7 @@ other = "哎哟。 看起来这个页面不存在 ¯\\_(ツ)_/¯。"
other = "转到主页" other = "转到主页"
[Edit-this-page] [Edit-this-page]
other = "编辑当前页" other = "编辑"
[Shortcuts-Title] [Shortcuts-Title]
other = "更多" other = "更多"

View file

@ -37,7 +37,7 @@
{{- with $File.Path }} {{- with $File.Path }}
<div id="top-github-link"> <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"> <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> </a>
</div> </div>
{{- end }} {{- end }}