Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/luizdepra/hugo-coder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormike <michielappelman@users.noreply.github.com>2022-01-31 00:25:57 +0300
committerGitHub <noreply@github.com>2022-01-31 00:25:57 +0300
commit720271a5bf72404ac60aa619ffdc7e4276952e8d (patch)
treeda5efc67b74f0f863e1ef9aa49b026350db69b62
parentebf9ad01cd5518bd71be89cce2517205611376ba (diff)
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
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--exampleSite/config.toml1
-rw-r--r--i18n/ar.toml3
-rw-r--r--i18n/bn.toml3
-rw-r--r--i18n/cs.toml3
-rw-r--r--i18n/de.toml3
-rw-r--r--i18n/en.toml3
-rw-r--r--i18n/es.toml3
-rw-r--r--i18n/fi.toml3
-rw-r--r--i18n/fr.toml3
-rw-r--r--i18n/he.toml3
-rw-r--r--i18n/hi.toml3
-rw-r--r--i18n/hu.toml3
-rw-r--r--i18n/id.toml3
-rw-r--r--i18n/it.toml3
-rw-r--r--i18n/ja.toml3
-rw-r--r--i18n/ko.toml3
-rw-r--r--i18n/ms.toml3
-rw-r--r--i18n/nl.toml3
-rw-r--r--i18n/np.toml3
-rw-r--r--i18n/pl.toml3
-rw-r--r--i18n/pt-br.toml3
-rw-r--r--i18n/ro.toml3
-rw-r--r--i18n/ru.toml3
-rw-r--r--i18n/se.toml3
-rw-r--r--i18n/sk.toml3
-rw-r--r--i18n/sq.toml3
-rw-r--r--i18n/tr.toml3
-rw-r--r--i18n/zh-cn.toml3
-rw-r--r--i18n/zh-tw.toml3
-rw-r--r--layouts/partials/footer.html4
31 files changed, 90 insertions, 0 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 05b8a39..914fa72 100644
--- a/CONTRIBUTORS.md
+++ b/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)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 2039858..fcf6fbc 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -13,6 +13,7 @@ enableEmoji = true
[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"]
diff --git a/i18n/ar.toml b/i18n/ar.toml
index 9858cae..ec33ba2 100644
--- a/i18n/ar.toml
+++ b/i18n/ar.toml
@@ -29,6 +29,9 @@ other = "هذه الصفحة غير موجودة"
[head_back]
other = "بإمكانك العودة إلى <a href=\"{{ . }}\">homepage</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "بواسطة"
diff --git a/i18n/bn.toml b/i18n/bn.toml
index a8f97ff..100d9fd 100644
--- a/i18n/bn.toml
+++ b/i18n/bn.toml
@@ -30,6 +30,9 @@ other = "দুঃখিত, কাঙ্ক্ষিত পাতাটির
[head_back]
other = "আপনি <a href=\"{{ . }}\">নীড়পাতায়</a> ফিরে যেতে পারেন"
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "চালনায়"
diff --git a/i18n/cs.toml b/i18n/cs.toml
index 3975b4b..4783703 100644
--- a/i18n/cs.toml
+++ b/i18n/cs.toml
@@ -29,6 +29,9 @@ other = "Omlouváme se, stránka nebyla nalezena."
[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á"
diff --git a/i18n/de.toml b/i18n/de.toml
index 3fa33a1..ea0b5f2 100644
--- a/i18n/de.toml
+++ b/i18n/de.toml
@@ -30,6 +30,9 @@ other = "Tut mir Leid, die Seite existiert leider nicht."
[head_back]
other = "Du kannst hier zurück zur <a href=\"{{ . }}\">Startseite</a>."
+[licensed_under]
+other = "Lizenziert unter"
+
[powered_by]
other = "Gestaltet mit"
diff --git a/i18n/en.toml b/i18n/en.toml
index 0e417c8..375ee8d 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -30,6 +30,9 @@ other = "Sorry, this page does not exist."
[head_back]
other = "You can head back to the <a href=\"{{ . }}\">homepage</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Powered by"
diff --git a/i18n/es.toml b/i18n/es.toml
index 396807d..4dad3a1 100644
--- a/i18n/es.toml
+++ b/i18n/es.toml
@@ -30,6 +30,9 @@ other = "Disculpa, la página no existe."
[head_back]
other = "Puedes regresar a la <a href=\"{{ . }}\">página inicial</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Desarrollado por"
diff --git a/i18n/fi.toml b/i18n/fi.toml
index cebeefb..49bd70e 100644
--- a/i18n/fi.toml
+++ b/i18n/fi.toml
@@ -30,6 +30,9 @@ other = "Valitettavasti tätä sivua ei ole olemassa."
[head_back]
other = "Voit palata takaisin <a href=\"{{ . }}\">kotisivulle</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Tarjoaa"
diff --git a/i18n/fr.toml b/i18n/fr.toml
index 5b02bad..86b9dea 100644
--- a/i18n/fr.toml
+++ b/i18n/fr.toml
@@ -30,6 +30,9 @@ other = "Désolé, cette page n'existe pas."
[head_back]
other = "Vous pouvez revenir à <a href=\"{{ . }}\">l'accueil</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Propulsé par"
diff --git a/i18n/he.toml b/i18n/he.toml
index e5e46e5..5423312 100644
--- a/i18n/he.toml
+++ b/i18n/he.toml
@@ -30,6 +30,9 @@ other = "מצטערים, דף אינטרנט זה אינו קיים"
[head_back]
other = " אתה יכול לחזור<a href=\"{{ . }}\">לדף הבית</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "מופעל על ידי"
diff --git a/i18n/hi.toml b/i18n/hi.toml
index bf3bade..983daec 100644
--- a/i18n/hi.toml
+++ b/i18n/hi.toml
@@ -30,6 +30,9 @@ other = "क्षमा करें, यह पृष्ठ मौजूद
[head_back]
other = "आप वापस आ सकते हैं <a href=\"{{ . }}\">मुखपृष्ठ</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "द्वारा संचालित"
diff --git a/i18n/hu.toml b/i18n/hu.toml
index 748b63b..dbe3a32 100644
--- a/i18n/hu.toml
+++ b/i18n/hu.toml
@@ -30,6 +30,9 @@ other = "Sajnálom, a kért oldal nem létezik."
[head_back]
other = "Itt visszaléphet a <a href=\"{{ . }}\">Főoldalra</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Motor:"
diff --git a/i18n/id.toml b/i18n/id.toml
index 7996ef9..6ebe551 100644
--- a/i18n/id.toml
+++ b/i18n/id.toml
@@ -30,6 +30,9 @@ other = "Maaf, halaman ini tidak ada."
[head_back]
other = "Anda dapat kembali ke <a href=\"{{ . }}\">beranda</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Dipersembahkan oleh"
diff --git a/i18n/it.toml b/i18n/it.toml
index e109c2a..3c4c5cc 100644
--- a/i18n/it.toml
+++ b/i18n/it.toml
@@ -30,6 +30,9 @@ other = "Siamo spiacenti, questa pagina non esiste."
[head_back]
other = "Torna alla <a href=\"{{ . }}\">homepage</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Generato da"
diff --git a/i18n/ja.toml b/i18n/ja.toml
index d9b7c26..b1f0b3a 100644
--- a/i18n/ja.toml
+++ b/i18n/ja.toml
@@ -30,6 +30,9 @@ other = "申し訳ございません。アクセスしようとしたページ
[head_back]
other = "<a href=\"{{ . }}\">トップページ</a>からお探しいただきますようお願い申し上げます。"
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "利用技術"
diff --git a/i18n/ko.toml b/i18n/ko.toml
index b60ab9b..62f98c4 100644
--- a/i18n/ko.toml
+++ b/i18n/ko.toml
@@ -30,6 +30,9 @@ other = "해당 페이지가 존재하지 않습니다."
[head_back]
other = "<a href=\"{{ . }}\">홈페이지</a>로 돌아가기"
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Powered by"
diff --git a/i18n/ms.toml b/i18n/ms.toml
index a913e56..1ca001a 100644
--- a/i18n/ms.toml
+++ b/i18n/ms.toml
@@ -33,6 +33,9 @@ other = "Maaf, halaman ini tidak wujud."
[head_back]
other = "Kembali ke <a href=\"{{ . }}\">halaman utama</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Dikuasakan oleh"
diff --git a/i18n/nl.toml b/i18n/nl.toml
index 4bcaf94..f4692dc 100644
--- a/i18n/nl.toml
+++ b/i18n/nl.toml
@@ -30,6 +30,9 @@ other = "Sorry, deze pagina bestaat niet."
[head_back]
other = "U kunt terugkeren naar de <a href=\"{{ . }}\">thuispagina</a>."
+[licensed_under]
+other = "Valt onder"
+
[powered_by]
other = "Aangedreven door"
diff --git a/i18n/np.toml b/i18n/np.toml
index 6be1af5..76fe7ba 100644
--- a/i18n/np.toml
+++ b/i18n/np.toml
@@ -30,6 +30,9 @@ other = "माफ गर्नुहोस, यो पृष्ठ उपलब
[head_back]
other = "मुख्यपृष्ठमा फर्किन सक्नुहुन्छ।<a href=\"{{ . }}\">मुख्यपृष्ठ</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "द्वारा संचालित"
diff --git a/i18n/pl.toml b/i18n/pl.toml
index 8a5ea7d..14e3270 100644
--- a/i18n/pl.toml
+++ b/i18n/pl.toml
@@ -30,6 +30,9 @@ other = "Wybacz, ta strona nie istnieje."
[head_back]
other = "Możesz wrócić na <a href=\"{{ . }}\">stronę domową</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Napędzane przez"
diff --git a/i18n/pt-br.toml b/i18n/pt-br.toml
index de1f0c8..e5c5c99 100644
--- a/i18n/pt-br.toml
+++ b/i18n/pt-br.toml
@@ -30,6 +30,9 @@ other = "Desculpe, essa página não existe."
[head_back]
other = "Você pode voltar para a <a href=\"{{ . }}\">página inicial</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Promovido por"
diff --git a/i18n/ro.toml b/i18n/ro.toml
index 4bf220b..7a7a9e8 100644
--- a/i18n/ro.toml
+++ b/i18n/ro.toml
@@ -30,6 +30,9 @@ other = "Ne pare rău, această pagină nu există."
[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"
diff --git a/i18n/ru.toml b/i18n/ru.toml
index 329dcba..fcd969b 100644
--- a/i18n/ru.toml
+++ b/i18n/ru.toml
@@ -31,6 +31,9 @@ other = "Извините, но этой страницы не существу
[head_back]
other = "Можете вернуться обратно на <a href=\"{{ . }}\">домашнюю страницу</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Работает на"
diff --git a/i18n/se.toml b/i18n/se.toml
index 1591e35..6f32172 100644
--- a/i18n/se.toml
+++ b/i18n/se.toml
@@ -30,6 +30,9 @@ other = "Ursäkta, men denna sida existerar inte."
[head_back]
other = "Här kan du komma tillbaka till <a href=\"{{ . }}\">startsidan</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Byggd med"
diff --git a/i18n/sk.toml b/i18n/sk.toml
index 90dc61f..44bcb09 100644
--- a/i18n/sk.toml
+++ b/i18n/sk.toml
@@ -32,6 +32,9 @@ other = "Prepáčte, ale táto stránka neexistuje."
[head_back]
other = "Späť na <a href=\"{{ . }}\">domácu stránku</a>."
+[licensed_under]
+other = "Licensed under"
+
[see_also]
other = "Pozrite tiež"
diff --git a/i18n/sq.toml b/i18n/sq.toml
index 6198742..e2c506f 100644
--- a/i18n/sq.toml
+++ b/i18n/sq.toml
@@ -30,6 +30,9 @@ other = "Na vjen keq, faqja nuk u gjet"
[head_back]
other = "Mund të ktheheni prapë tek <a href=\"{{ . }}\">homepage</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Mundësuar nga "
diff --git a/i18n/tr.toml b/i18n/tr.toml
index 0409327..285d804 100644
--- a/i18n/tr.toml
+++ b/i18n/tr.toml
@@ -30,6 +30,9 @@ other = "Özür dileriz, böyle bir sayfa yok."
[head_back]
other = "<a href=\"{{ . }}\">Ana sayfaya</a> dönebilirsiniz."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "Site program altyapısı"
diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml
index fabcd78..771875e 100644
--- a/i18n/zh-cn.toml
+++ b/i18n/zh-cn.toml
@@ -30,6 +30,9 @@ other = "此页面不存在"
[head_back]
other = "返回 <a href=\"{{ . }}\">首页</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "技术支持"
diff --git a/i18n/zh-tw.toml b/i18n/zh-tw.toml
index 0d3992d..d3fa3f7 100644
--- a/i18n/zh-tw.toml
+++ b/i18n/zh-tw.toml
@@ -30,6 +30,9 @@ other = "此頁面不存在"
[head_back]
other = "返回 <a href=\"{{ . }}\">首頁</a>."
+[licensed_under]
+other = "Licensed under"
+
[powered_by]
other = "技術支援"
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 78bd72c..94f1449 100644
--- a/layouts/partials/footer.html
+++ b/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>]