aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/post
diff options
context:
space:
mode:
authorolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:39:16 +0800
committerolOwOlo <26087907+olOwOlo@users.noreply.github.com>2018-01-31 22:39:16 +0800
commita6e116452f8d3f0e043107a1e0d047256514457b (patch)
tree187ecacd6d3b4b77cedbd4d78d4a1a08d99e1531 /layouts/partials/post
parent7a5ee0ce2555bc1dca209ae903b86eb7b658cdb6 (diff)
feat: add `postMetaInFooter` param
add `postMetaInFooter` param to control the `contentCopyright` container, and now you can show the author and lastMod information without displaying the license.
Diffstat (limited to 'layouts/partials/post')
-rw-r--r--layouts/partials/post/copyright.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html
index 71494d0..cd42d68 100644
--- a/layouts/partials/post/copyright.html
+++ b/layouts/partials/post/copyright.html
@@ -1,4 +1,4 @@
-{{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) }}
+{{ if or .Params.postMetaInFooter (and .Site.Params.postMetaInFooter (ne .Params.postMetaInFooter false)) -}}
<div class="post-copyright">
<p class="copyright-item">
<span class="item-title">{{ T "author" }}</span>
@@ -16,6 +16,7 @@
</p>
{{- end }}
{{- end }}
+ {{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) -}}
<p class="copyright-item">
<span class="item-title">{{ T "license" }}</span>
<span class="item-content">
@@ -26,5 +27,6 @@
{{- end -}}
</span>
</p>
+ {{- end }}
</div>
{{- end }} \ No newline at end of file