From 720271a5bf72404ac60aa619ffdc7e4276952e8d Mon Sep 17 00:00:00 2001
From: mike <michielappelman@users.noreply.github.com>
Date: Sun, 30 Jan 2022 21:25:57 +0000
Subject: [PATCH] Add a license statement in the footer (#637)

---
 i18n/bn.toml                 |    3 +
 i18n/ms.toml                 |    3 +
 i18n/sq.toml                 |    3 +
 i18n/hu.toml                 |    3 +
 i18n/ja.toml                 |    3 +
 i18n/sk.toml                 |    3 +
 i18n/de.toml                 |    3 +
 i18n/pt-br.toml              |    3 +
 i18n/cs.toml                 |    3 +
 i18n/hi.toml                 |    3 +
 i18n/tr.toml                 |    3 +
 i18n/id.toml                 |    3 +
 i18n/ro.toml                 |    3 +
 i18n/it.toml                 |    3 +
 layouts/partials/footer.html |    4 ++
 exampleSite/config.toml      |    1 
 i18n/zh-cn.toml              |    3 +
 i18n/ko.toml                 |    3 +
 i18n/zh-tw.toml              |    3 +
 i18n/he.toml                 |    3 +
 i18n/np.toml                 |    3 +
 i18n/ru.toml                 |    3 +
 i18n/es.toml                 |    3 +
 i18n/fi.toml                 |    3 +
 i18n/pl.toml                 |    3 +
 i18n/ar.toml                 |    3 +
 i18n/se.toml                 |    3 +
 i18n/nl.toml                 |    3 +
 i18n/en.toml                 |    3 +
 CONTRIBUTORS.md              |    1 
 i18n/fr.toml                 |    3 +
 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 @@
 
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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 @@
 [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>]

--
Gitblit v1.10.0