mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
refactor: copyright -> contentCopyright
This commit is contained in:
parent
f24f847bac
commit
553d15e15f
3 changed files with 7 additions and 7 deletions
|
@ -12,8 +12,8 @@ author: ""
|
||||||
# you can close something for this content if you open it in config.toml.
|
# you can close something for this content if you open it in config.toml.
|
||||||
comment: false
|
comment: false
|
||||||
toc: false
|
toc: false
|
||||||
# you can define another copyright. e.g. copyright: "This is an another copyright."
|
# you can define another contentCopyright. e.g. contentCopyright: "This is an another copyright."
|
||||||
copyright: false
|
contentCopyright: false
|
||||||
reward: false
|
reward: false
|
||||||
mathjax: false
|
mathjax: false
|
||||||
---
|
---
|
||||||
|
|
|
@ -32,6 +32,6 @@
|
||||||
<span class="heart">
|
<span class="heart">
|
||||||
<i class="iconfont icon-heart"></i>
|
<i class="iconfont icon-heart"></i>
|
||||||
</span>
|
</span>
|
||||||
<span class="author">{{ .Site.Author.name }}</span>
|
<span class="author">{{if .Site.Copyright }}{{ .Site.Copyright | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
|
@ -1,4 +1,4 @@
|
||||||
{{ if and .Site.Copyright (ne .Params.copyright false) }}
|
{{ if and .Site.Params.contentCopyright (ne .Params.contentCopyright false) }}
|
||||||
{{ $lang := .Site.Data.even.default -}}
|
{{ $lang := .Site.Data.even.default -}}
|
||||||
<div class="post-copyright">
|
<div class="post-copyright">
|
||||||
<p class="copyright-item">
|
<p class="copyright-item">
|
||||||
|
@ -23,10 +23,10 @@
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<p class="copyright-item lincese">
|
<p class="copyright-item lincese">
|
||||||
<span class="item-title">{{ $lang.copyright.lincese }}: </span>
|
<span class="item-title">{{ $lang.copyright.lincese }}: </span>
|
||||||
{{ if .Params.copyright -}}
|
{{ if .Params.contentCopyright -}}
|
||||||
{{ .Params.copyright | safeHTML }}
|
{{ .Params.contentCopyright | safeHTML }}
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
{{ .Site.Copyright | safeHTML }}
|
{{ .Site.Params.contentCopyright | safeHTML }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue