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

github.com/coderzh/hugo-pacman-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBivectorfoil <550282600@qq.com>2018-10-03 08:22:21 +0300
committercoderzh <pythonzh@qq.com>2018-10-07 08:09:41 +0300
commit39c82a5fd7c87bfab74272dad78567018d6f6041 (patch)
tree5e617d8aeaf5444311dc0bff27398b5f774250ca
parentec6a99061ae661b85924af126a532ca48008afaa (diff)
Feature: add CreativeCommons icon support.
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/partials/article_content.html9
2 files changed, 10 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index e6335d2..16451fd 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -33,6 +33,7 @@ pygmentsUseClasses = true
DateFormat = "2006年01月02日"
MonthFormat = "2006年01月"
FancyBox = true
+ CreativeCommons = true
[Params.GoogleAnalytics]
ID = "UA-10147768-2"
diff --git a/layouts/partials/article_content.html b/layouts/partials/article_content.html
index f948772..7cf8544 100644
--- a/layouts/partials/article_content.html
+++ b/layouts/partials/article_content.html
@@ -9,6 +9,15 @@
</div>
{{ end }}
{{ .Content }}
+ {{ if .Params.CreativeCommons }}
+ <div class="creative-commons">
+ <a rel="license"
+ href="https://creativecommons.org/licenses/by-sa/4.0/"><img
+ alt="知识共享许可协议" style="border-width:0"
+ src="https://i.creativecommons.org/l/by-sa/4.0/88x31.png" />
+ </a><br />
+ </div>
+ {{ end }}
</div>
{{ partial "article_footer.html" . }}
</article>