Add a license statement in the footer (#637)

* Add a license param in the config used in footer

Also adds initial EN and NL i18n statements referring to the license.

* Add Michiel to CONTRIBUTOR

* Add example text for i18n of `licensed_under`

* Add safeHTML filter to license value in the footer

Also updates the example config in the exampleSite config.toml to link
to Creative Commons.

* Fix separator dot in footer within License ifdef
This commit is contained in:
mike
2022-01-30 22:25:57 +01:00
committed by GitHub
parent ebf9ad01cd
commit 720271a5bf
31 changed files with 90 additions and 0 deletions

View File

@@ -106,3 +106,4 @@
- [Simon Pai](https://github.com/simonpai) - [Simon Pai](https://github.com/simonpai)
- [Brenton Mallen](https://github.com/brentonmallen1) - [Brenton Mallen](https://github.com/brentonmallen1)
- [Xiaoyang Luo](https://github.com/ccviolett/) - [Xiaoyang Luo](https://github.com/ccviolett/)
- [Michiel Appelman](https://appelman.se)

View File

@@ -13,6 +13,7 @@ enableEmoji = true
[params] [params]
author = "John Doe" author = "John Doe"
# license = '<a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA-4.0</a>'
description = "John Doe's personal website" description = "John Doe's personal website"
keywords = "blog,developer,personal" keywords = "blog,developer,personal"
info = ["Full Stack DevOps", "Magician"] info = ["Full Stack DevOps", "Magician"]

View File

@@ -29,6 +29,9 @@ other = "هذه الصفحة غير موجودة"
[head_back] [head_back]
other = "بإمكانك العودة إلى <a href=\"{{ . }}\">homepage</a>." other = "بإمكانك العودة إلى <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "بواسطة" other = "بواسطة"

View File

@@ -30,6 +30,9 @@ other = "দুঃখিত, কাঙ্ক্ষিত পাতাটির
[head_back] [head_back]
other = "আপনি <a href=\"{{ . }}\">নীড়পাতায়</a> ফিরে যেতে পারেন" other = "আপনি <a href=\"{{ . }}\">নীড়পাতায়</a> ফিরে যেতে পারেন"
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "চালনায়" other = "চালনায়"

View File

@@ -29,6 +29,9 @@ other = "Omlouváme se, stránka nebyla nalezena."
[head_back] [head_back]
other = "Můžete se vrátit na <a href=\"{{ . }}\">homepage</a>." other = "Můžete se vrátit na <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Stránka používá" other = "Stránka používá"

View File

@@ -30,6 +30,9 @@ other = "Tut mir Leid, die Seite existiert leider nicht."
[head_back] [head_back]
other = "Du kannst hier zurück zur <a href=\"{{ . }}\">Startseite</a>." other = "Du kannst hier zurück zur <a href=\"{{ . }}\">Startseite</a>."
[licensed_under]
other = "Lizenziert unter"
[powered_by] [powered_by]
other = "Gestaltet mit" other = "Gestaltet mit"

View File

@@ -30,6 +30,9 @@ other = "Sorry, this page does not exist."
[head_back] [head_back]
other = "You can head back to the <a href=\"{{ . }}\">homepage</a>." other = "You can head back to the <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Powered by" other = "Powered by"

View File

@@ -30,6 +30,9 @@ other = "Disculpa, la página no existe."
[head_back] [head_back]
other = "Puedes regresar a la <a href=\"{{ . }}\">página inicial</a>." other = "Puedes regresar a la <a href=\"{{ . }}\">página inicial</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Desarrollado por" other = "Desarrollado por"

View File

@@ -30,6 +30,9 @@ other = "Valitettavasti tätä sivua ei ole olemassa."
[head_back] [head_back]
other = "Voit palata takaisin <a href=\"{{ . }}\">kotisivulle</a>." other = "Voit palata takaisin <a href=\"{{ . }}\">kotisivulle</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Tarjoaa" other = "Tarjoaa"

View File

@@ -30,6 +30,9 @@ other = "Désolé, cette page n'existe pas."
[head_back] [head_back]
other = "Vous pouvez revenir à <a href=\"{{ . }}\">l'accueil</a>." other = "Vous pouvez revenir à <a href=\"{{ . }}\">l'accueil</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Propulsé par" other = "Propulsé par"

View File

@@ -30,6 +30,9 @@ other = "מצטערים, דף אינטרנט זה אינו קיים"
[head_back] [head_back]
other = " אתה יכול לחזור<a href=\"{{ . }}\">לדף הבית</a>." other = " אתה יכול לחזור<a href=\"{{ . }}\">לדף הבית</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "מופעל על ידי" other = "מופעל על ידי"

View File

@@ -30,6 +30,9 @@ other = "क्षमा करें, यह पृष्ठ मौजूद
[head_back] [head_back]
other = "आप वापस आ सकते हैं <a href=\"{{ . }}\">मुखपृष्ठ</a>." other = "आप वापस आ सकते हैं <a href=\"{{ . }}\">मुखपृष्ठ</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "द्वारा संचालित" other = "द्वारा संचालित"

View File

@@ -30,6 +30,9 @@ other = "Sajnálom, a kért oldal nem létezik."
[head_back] [head_back]
other = "Itt visszaléphet a <a href=\"{{ . }}\">Főoldalra</a>." other = "Itt visszaléphet a <a href=\"{{ . }}\">Főoldalra</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Motor:" other = "Motor:"

View File

@@ -30,6 +30,9 @@ other = "Maaf, halaman ini tidak ada."
[head_back] [head_back]
other = "Anda dapat kembali ke <a href=\"{{ . }}\">beranda</a>." other = "Anda dapat kembali ke <a href=\"{{ . }}\">beranda</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Dipersembahkan oleh" other = "Dipersembahkan oleh"

View File

@@ -30,6 +30,9 @@ other = "Siamo spiacenti, questa pagina non esiste."
[head_back] [head_back]
other = "Torna alla <a href=\"{{ . }}\">homepage</a>." other = "Torna alla <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Generato da" other = "Generato da"

View File

@@ -30,6 +30,9 @@ other = "申し訳ございません。アクセスしようとしたページ
[head_back] [head_back]
other = "<a href=\"{{ . }}\">トップページ</a>からお探しいただきますようお願い申し上げます。" other = "<a href=\"{{ . }}\">トップページ</a>からお探しいただきますようお願い申し上げます。"
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "利用技術" other = "利用技術"

View File

@@ -30,6 +30,9 @@ other = "해당 페이지가 존재하지 않습니다."
[head_back] [head_back]
other = "<a href=\"{{ . }}\">홈페이지</a>로 돌아가기" other = "<a href=\"{{ . }}\">홈페이지</a>로 돌아가기"
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Powered by" other = "Powered by"

View File

@@ -33,6 +33,9 @@ other = "Maaf, halaman ini tidak wujud."
[head_back] [head_back]
other = "Kembali ke <a href=\"{{ . }}\">halaman utama</a>." other = "Kembali ke <a href=\"{{ . }}\">halaman utama</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Dikuasakan oleh" other = "Dikuasakan oleh"

View File

@@ -30,6 +30,9 @@ other = "Sorry, deze pagina bestaat niet."
[head_back] [head_back]
other = "U kunt terugkeren naar de <a href=\"{{ . }}\">thuispagina</a>." other = "U kunt terugkeren naar de <a href=\"{{ . }}\">thuispagina</a>."
[licensed_under]
other = "Valt onder"
[powered_by] [powered_by]
other = "Aangedreven door" other = "Aangedreven door"

View File

@@ -30,6 +30,9 @@ other = "माफ गर्नुहोस, यो पृष्ठ उपलब
[head_back] [head_back]
other = "मुख्यपृष्ठमा फर्किन सक्नुहुन्छ।<a href=\"{{ . }}\">मुख्यपृष्ठ</a>." other = "मुख्यपृष्ठमा फर्किन सक्नुहुन्छ।<a href=\"{{ . }}\">मुख्यपृष्ठ</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "द्वारा संचालित" other = "द्वारा संचालित"

View File

@@ -30,6 +30,9 @@ other = "Wybacz, ta strona nie istnieje."
[head_back] [head_back]
other = "Możesz wrócić na <a href=\"{{ . }}\">stronę domową</a>." other = "Możesz wrócić na <a href=\"{{ . }}\">stronę domową</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Napędzane przez" other = "Napędzane przez"

View File

@@ -30,6 +30,9 @@ other = "Desculpe, essa página não existe."
[head_back] [head_back]
other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>." other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Promovido por" other = "Promovido por"

View File

@@ -30,6 +30,9 @@ other = "Ne pare rău, această pagină nu există."
[head_back] [head_back]
other = "Poți să te întorci la <a href=\"{{ . }}\">pagina principală</a>." other = "Poți să te întorci la <a href=\"{{ . }}\">pagina principală</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Susținut de" other = "Susținut de"

View File

@@ -31,6 +31,9 @@ other = "Извините, но этой страницы не существу
[head_back] [head_back]
other = "Можете вернуться обратно на <a href=\"{{ . }}\">домашнюю страницу</a>." other = "Можете вернуться обратно на <a href=\"{{ . }}\">домашнюю страницу</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Работает на" other = "Работает на"

View File

@@ -30,6 +30,9 @@ other = "Ursäkta, men denna sida existerar inte."
[head_back] [head_back]
other = "Här kan du komma tillbaka till <a href=\"{{ . }}\">startsidan</a>." other = "Här kan du komma tillbaka till <a href=\"{{ . }}\">startsidan</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Byggd med" other = "Byggd med"

View File

@@ -32,6 +32,9 @@ other = "Prepáčte, ale táto stránka neexistuje."
[head_back] [head_back]
other = "Späť na <a href=\"{{ . }}\">domácu stránku</a>." other = "Späť na <a href=\"{{ . }}\">domácu stránku</a>."
[licensed_under]
other = "Licensed under"
[see_also] [see_also]
other = "Pozrite tiež" other = "Pozrite tiež"

View File

@@ -30,6 +30,9 @@ other = "Na vjen keq, faqja nuk u gjet"
[head_back] [head_back]
other = "Mund të ktheheni prapë tek <a href=\"{{ . }}\">homepage</a>." other = "Mund të ktheheni prapë tek <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Mundësuar nga " other = "Mundësuar nga "

View File

@@ -30,6 +30,9 @@ other = "Özür dileriz, böyle bir sayfa yok."
[head_back] [head_back]
other = "<a href=\"{{ . }}\">Ana sayfaya</a> dönebilirsiniz." other = "<a href=\"{{ . }}\">Ana sayfaya</a> dönebilirsiniz."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "Site program altyapısı" other = "Site program altyapısı"

View File

@@ -30,6 +30,9 @@ other = "此页面不存在"
[head_back] [head_back]
other = "返回 <a href=\"{{ . }}\">首页</a>." other = "返回 <a href=\"{{ . }}\">首页</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "技术支持" other = "技术支持"

View File

@@ -30,6 +30,9 @@ other = "此頁面不存在"
[head_back] [head_back]
other = "返回 <a href=\"{{ . }}\">首頁</a>." other = "返回 <a href=\"{{ . }}\">首頁</a>."
[licensed_under]
other = "Licensed under"
[powered_by] [powered_by]
other = "技術支援" other = "技術支援"

View File

@@ -7,6 +7,10 @@
{{ now.Year }} {{ now.Year }}
{{ with .Site.Params.author }} {{ . }} {{ end }} {{ with .Site.Params.author }} {{ . }} {{ end }}
· ·
{{ if (and .Site.Params.license) }}
{{ i18n "licensed_under" }} {{ .Site.Params.license | safeHTML }}
·
{{ end }}
{{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>. {{ i18n "powered_by" }} <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/luizdepra/hugo-coder/">Coder</a>.
{{ if (and .Site.Params.commit .GitInfo) }} {{ if (and .Site.Params.commit .GitInfo) }}
[<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>] [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]