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

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreuixiy <reuixiy@gmail.com>2021-08-14 18:30:49 +0300
committerreuixiy <reuixiy@gmail.com>2021-08-14 18:30:49 +0300
commit8964306e6cea55a8c7457a3ebace226db95ce107 (patch)
tree0992abfde19ad33121cd398b741d34911c602946
parent0e679a3d0b1b399b9e8e154826cbaf4c553bf6b6 (diff)
feat: add copyleft 🄯 support
-rw-r--r--config-examples/en/config.toml1
-rw-r--r--config-examples/zh-cn/config.toml1
-rw-r--r--config-examples/zh-tw/config.toml1
-rw-r--r--layouts/partials/footer.html3
4 files changed, 6 insertions, 0 deletions
diff --git a/config-examples/en/config.toml b/config-examples/en/config.toml
index e59bbee..9aca941 100644
--- a/config-examples/en/config.toml
+++ b/config-examples/en/config.toml
@@ -1250,6 +1250,7 @@ uglyURLs = false
displayFooterInHome = true
+ displayCopyleftSymbol = false
displayCopyrightSymbol = true
displaySiteCreatedYear = true
diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml
index bf66768..212b4a8 100644
--- a/config-examples/zh-cn/config.toml
+++ b/config-examples/zh-cn/config.toml
@@ -1215,6 +1215,7 @@ uglyURLs = false
# 是否在首页显示
displayFooterInHome = true
+ displayCopyleftSymbol = false
# 是否显示版权符号(©)
displayCopyrightSymbol = true
diff --git a/config-examples/zh-tw/config.toml b/config-examples/zh-tw/config.toml
index 7a66eb0..e6030c0 100644
--- a/config-examples/zh-tw/config.toml
+++ b/config-examples/zh-tw/config.toml
@@ -1215,6 +1215,7 @@ uglyURLs = false
# 是否在首頁顯示
displayFooterInHome = true
+ displayCopyleftSymbol = false
# 是否顯示版權符號(©)
displayCopyrightSymbol = true
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 63c4470..ff818ca 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,6 +2,9 @@
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="site-info">
+ {{- if .Site.Params.displayCopyleftSymbol -}}
+ 🄯&nbsp;
+ {{- end -}}
{{- if .Site.Params.displayCopyrightSymbol -}}
©&nbsp;
{{- end -}}