mirror of https://github.com/luizdepra/hugo-coder.git

mike
30.25.2022 720271a5bf72404ac60aa619ffdc7e4276952e8d
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
31 files modified
90 ■■■■■ changed files
CONTRIBUTORS.md 1 ●●●● patch | view | raw | blame | history
exampleSite/config.toml 1 ●●●● patch | view | raw | blame | history
i18n/ar.toml 3 ●●●●● patch | view | raw | blame | history
i18n/bn.toml 3 ●●●●● patch | view | raw | blame | history
i18n/cs.toml 3 ●●●●● patch | view | raw | blame | history
i18n/de.toml 3 ●●●●● patch | view | raw | blame | history
i18n/en.toml 3 ●●●●● patch | view | raw | blame | history
i18n/es.toml 3 ●●●●● patch | view | raw | blame | history
i18n/fi.toml 3 ●●●●● patch | view | raw | blame | history
i18n/fr.toml 3 ●●●●● patch | view | raw | blame | history
i18n/he.toml 3 ●●●●● patch | view | raw | blame | history
i18n/hi.toml 3 ●●●●● patch | view | raw | blame | history
i18n/hu.toml 3 ●●●●● patch | view | raw | blame | history
i18n/id.toml 3 ●●●●● patch | view | raw | blame | history
i18n/it.toml 3 ●●●●● patch | view | raw | blame | history
i18n/ja.toml 3 ●●●●● patch | view | raw | blame | history
i18n/ko.toml 3 ●●●●● patch | view | raw | blame | history
i18n/ms.toml 3 ●●●●● patch | view | raw | blame | history
i18n/nl.toml 3 ●●●●● patch | view | raw | blame | history
i18n/np.toml 3 ●●●●● patch | view | raw | blame | history
i18n/pl.toml 3 ●●●●● patch | view | raw | blame | history
i18n/pt-br.toml 3 ●●●●● patch | view | raw | blame | history
i18n/ro.toml 3 ●●●●● patch | view | raw | blame | history
i18n/ru.toml 3 ●●●●● patch | view | raw | blame | history
i18n/se.toml 3 ●●●●● patch | view | raw | blame | history
i18n/sk.toml 3 ●●●●● patch | view | raw | blame | history
i18n/sq.toml 3 ●●●●● patch | view | raw | blame | history
i18n/tr.toml 3 ●●●●● patch | view | raw | blame | history
i18n/zh-cn.toml 3 ●●●●● patch | view | raw | blame | history
i18n/zh-tw.toml 3 ●●●●● patch | view | raw | blame | history
layouts/partials/footer.html 4 ●●●● patch | view | raw | blame | history
CONTRIBUTORS.md
@@ -106,3 +106,4 @@
- [Simon Pai](https://github.com/simonpai)
- [Brenton Mallen](https://github.com/brentonmallen1)
- [Xiaoyang Luo](https://github.com/ccviolett/)
- [Michiel Appelman](https://appelman.se)
exampleSite/config.toml
@@ -13,6 +13,7 @@
[params]
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"
keywords = "blog,developer,personal"
info = ["Full Stack DevOps", "Magician"]
i18n/ar.toml
@@ -29,6 +29,9 @@
[head_back]
other = "بإمكانك العودة إلى <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "بواسطة"
i18n/bn.toml
@@ -30,6 +30,9 @@
[head_back]
other = "আপনি <a href=\"{{ . }}\">নীড়পাতায়</a> ফিরে যেতে পারেন"
[licensed_under]
other = "Licensed under"
[powered_by]
other = "চালনায়"
i18n/cs.toml
@@ -29,6 +29,9 @@
[head_back]
other = "Můžete se vrátit na <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Stránka používá"
i18n/de.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Du kannst hier zurück zur <a href=\"{{ . }}\">Startseite</a>."
[licensed_under]
other = "Lizenziert unter"
[powered_by]
other = "Gestaltet mit"
i18n/en.toml
@@ -30,6 +30,9 @@
[head_back]
other = "You can head back to the <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Powered by"
i18n/es.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Puedes regresar a la <a href=\"{{ . }}\">página inicial</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Desarrollado por"
i18n/fi.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Voit palata takaisin <a href=\"{{ . }}\">kotisivulle</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Tarjoaa"
i18n/fr.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Vous pouvez revenir à <a href=\"{{ . }}\">l'accueil</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Propulsé par"
i18n/he.toml
@@ -30,6 +30,9 @@
[head_back]
other = " אתה יכול לחזור<a href=\"{{ . }}\">לדף הבית</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "מופעל על ידי"
i18n/hi.toml
@@ -30,6 +30,9 @@
[head_back]
other = "आप वापस आ सकते हैं <a href=\"{{ . }}\">मुखपृष्ठ</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "द्वारा संचालित"
i18n/hu.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Itt visszaléphet a <a href=\"{{ . }}\">Főoldalra</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Motor:"
i18n/id.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Anda dapat kembali ke <a href=\"{{ . }}\">beranda</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Dipersembahkan oleh"
i18n/it.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Torna alla <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Generato da"
i18n/ja.toml
@@ -30,6 +30,9 @@
[head_back]
other = "<a href=\"{{ . }}\">トップページ</a>からお探しいただきますようお願い申し上げます。"
[licensed_under]
other = "Licensed under"
[powered_by]
other = "利用技術"
i18n/ko.toml
@@ -30,6 +30,9 @@
[head_back]
other = "<a href=\"{{ . }}\">홈페이지</a>로 돌아가기"
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Powered by"
i18n/ms.toml
@@ -33,6 +33,9 @@
[head_back]
other = "Kembali ke <a href=\"{{ . }}\">halaman utama</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Dikuasakan oleh"
i18n/nl.toml
@@ -30,6 +30,9 @@
[head_back]
other = "U kunt terugkeren naar de <a href=\"{{ . }}\">thuispagina</a>."
[licensed_under]
other = "Valt onder"
[powered_by]
other = "Aangedreven door"
i18n/np.toml
@@ -30,6 +30,9 @@
[head_back]
other = "मुख्यपृष्ठमा फर्किन सक्नुहुन्छ।<a href=\"{{ . }}\">मुख्यपृष्ठ</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "द्वारा संचालित"
i18n/pl.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Możesz wrócić na <a href=\"{{ . }}\">stronę domową</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Napędzane przez"
i18n/pt-br.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Promovido por"
i18n/ro.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Poți să te întorci la <a href=\"{{ . }}\">pagina principală</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Susținut de"
i18n/ru.toml
@@ -31,6 +31,9 @@
[head_back]
other = "Можете вернуться обратно на <a href=\"{{ . }}\">домашнюю страницу</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Работает на"
i18n/se.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Här kan du komma tillbaka till <a href=\"{{ . }}\">startsidan</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Byggd med"
i18n/sk.toml
@@ -32,6 +32,9 @@
[head_back]
other = "Späť na <a href=\"{{ . }}\">domácu stránku</a>."
[licensed_under]
other = "Licensed under"
[see_also]
other = "Pozrite tiež"
i18n/sq.toml
@@ -30,6 +30,9 @@
[head_back]
other = "Mund të ktheheni prapë tek <a href=\"{{ . }}\">homepage</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Mundësuar nga "
i18n/tr.toml
@@ -30,6 +30,9 @@
[head_back]
other = "<a href=\"{{ . }}\">Ana sayfaya</a> dönebilirsiniz."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "Site program altyapısı"
i18n/zh-cn.toml
@@ -30,6 +30,9 @@
[head_back]
other = "返回 <a href=\"{{ . }}\">首页</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "技术支持"
i18n/zh-tw.toml
@@ -30,6 +30,9 @@
[head_back]
other = "返回 <a href=\"{{ . }}\">首頁</a>."
[licensed_under]
other = "Licensed under"
[powered_by]
other = "技術支援"
layouts/partials/footer.html
@@ -7,6 +7,10 @@
    {{ now.Year }}
    {{ 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>.
    {{ if (and .Site.Params.commit .GitInfo) }}
      [<a href="{{ .Site.Params.commit }}/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>]