From 39c82a5fd7c87bfab74272dad78567018d6f6041 Mon Sep 17 00:00:00 2001 From: Bivectorfoil <550282600@qq.com> Date: Wed, 3 Oct 2018 13:22:21 +0800 Subject: Feature: add CreativeCommons icon support. --- exampleSite/config.toml | 1 + layouts/partials/article_content.html | 9 +++++++++ 2 files changed, 10 insertions(+) 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 @@ {{ end }} {{ .Content }} + {{ if .Params.CreativeCommons }} +
+ 知识共享许可协议 +
+
+ {{ end }} {{ partial "article_footer.html" . }} -- cgit v1.2.3