summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authoramzrk22020-06-04 15:56:03 +0800
committeramzrk22020-06-04 15:56:03 +0800
commitd185ecccaabcaf4a9cced394d5b72f246bc2e5e7 (patch)
tree559490939ee0de0d63bb8aa9f5aee4745cf9989d /layouts/_default
parent2cbde93423c7792929809e95a908913060d786cf (diff)
downloadhugo-theme-fuji-d185ecccaabcaf4a9cced394d5b72f246bc2e5e7.tar.gz
hugo-theme-fuji-d185ecccaabcaf4a9cced394d5b72f246bc2e5e7.tar.bz2
hugo-theme-fuji-d185ecccaabcaf4a9cced394d5b72f246bc2e5e7.zip
Allow disable license globally
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 721671e..db5e2f5 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -16,7 +16,7 @@
</div>
</article>
<!-- post license -->
-{{ if ne .Params.noLicense true }}
+{{ if and (.Site.Params.showLicense) (ne .Params.noLicense true) }}
<div class="license markdown-body">
<blockquote>
<p>{{ i18n "postCopyrightFront" }}<a rel="license" href="{{ .Site.Params.licenseLink }}"