diff options
| author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-08-30 22:32:17 +0800 | 
|---|---|---|
| committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-08-30 22:32:17 +0800 | 
| commit | 553d15e15f3affdfda48686469309e01f2b994f7 (patch) | |
| tree | aa246f7aa92a6deb8117dbeadbb4e1895108f650 /layouts/partials/post | |
| parent | f24f847bacf0e4aeb2c45ec89fd24aa99dfa77da (diff) | |
refactor: copyright -> contentCopyright
Diffstat (limited to 'layouts/partials/post')
| -rw-r--r-- | layouts/partials/post/copyright.html | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html index 6908b10..0768d36 100644 --- a/layouts/partials/post/copyright.html +++ b/layouts/partials/post/copyright.html @@ -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 -}}  <div class="post-copyright">    <p class="copyright-item"> @@ -23,10 +23,10 @@    {{- end }}    <p class="copyright-item lincese">      <span class="item-title">{{ $lang.copyright.lincese }}: </span> -    {{ if .Params.copyright -}} -      {{ .Params.copyright | safeHTML }} +    {{ if .Params.contentCopyright -}} +      {{ .Params.contentCopyright | safeHTML }}      {{ else -}} -      {{ .Site.Copyright | safeHTML }} +      {{ .Site.Params.contentCopyright | safeHTML }}      {{- end }}    </p>  </div> | 
