From 553d15e15f3affdfda48686469309e01f2b994f7 Mon Sep 17 00:00:00 2001 From: olOwOlo <26087907+olOwOlo@users.noreply.github.com> Date: Wed, 30 Aug 2017 22:32:17 +0800 Subject: refactor: copyright -> contentCopyright --- layouts/partials/footer.html | 2 +- layouts/partials/post/copyright.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'layouts') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 6c98f51..4004d7b 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -32,6 +32,6 @@ - + \ No newline at end of file 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 -}}
@@ -23,10 +23,10 @@ {{- end }}
{{ $lang.copyright.lincese }}: - {{ if .Params.copyright -}} - {{ .Params.copyright | safeHTML }} + {{ if .Params.contentCopyright -}} + {{ .Params.contentCopyright | safeHTML }} {{ else -}} - {{ .Site.Copyright | safeHTML }} + {{ .Site.Params.contentCopyright | safeHTML }} {{- end }}