diff options
author | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 17:38:16 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2017-09-11 17:38:16 +0800 |
commit | cffd4dd2455413535d07cae174b4c2faef8b9bfa (patch) | |
tree | ca439f1d1026e3d45b0d4423e3b9f97792d3e4c8 /layouts/partials/post | |
parent | 7cab923ef6c93a22c3f9983831f3f07795d8f118 (diff) |
style: change content copyright style
delete link in content copyright
change item-title style
Diffstat (limited to 'layouts/partials/post')
-rw-r--r-- | layouts/partials/post/copyright.html | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/layouts/partials/post/copyright.html b/layouts/partials/post/copyright.html index 208aeee..813da5a 100644 --- a/layouts/partials/post/copyright.html +++ b/layouts/partials/post/copyright.html @@ -2,32 +2,30 @@ {{ $lang := .Site.Data.even.default -}} <div class="post-copyright"> <p class="copyright-item"> - <span class="item-title">{{ $lang.copyright.author }}: </span> - <span>{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span> + <span class="item-title">{{ $lang.copyright.author }}</span> + <span class="item-content">{{ if .Params.author }}{{ .Params.author | safeHTML }}{{ else }}{{ .Site.Author.name | safeHTML }}{{ end }}</span> </p> <p class="copyright-item"> - <span class="item-title">{{ $lang.copyright.lastMod }}: </span> - {{ .Lastmod.Format "2006-01-02" }} - </p> - <p class="copyright-item"> - <span class="item-title">{{ $lang.copyright.link }}: </span> - <a href="{{ .Permalink }}">{{ .Permalink }}</a> + <span class="item-title">{{ $lang.copyright.lastMod }}</span> + <span class="item-content">{{ .Lastmod.Format "2006-01-02" }}</span> </p> {{ if $.Site.Params.linkToMarkDown -}} {{ with $.OutputFormats.Get "markdown" -}} <p class="copyright-item"> - <span class="item-title">{{ $lang.copyright.markdown }}: </span> - <a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a> + <span class="item-title">{{ $lang.copyright.markdown }}</span> + <span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ $lang.posts.seeMarkDown }}</a></span> </p> {{- end }} {{- end }} - <p class="copyright-item license"> - <span class="item-title">{{ $lang.copyright.license }}: </span> - {{ if .Params.contentCopyright -}} + <p class="copyright-item"> + <span class="item-title">{{ $lang.copyright.license }}</span> + <span class="item-content"> + {{- if .Params.contentCopyright -}} {{ .Params.contentCopyright | safeHTML }} - {{ else -}} + {{- else -}} {{ .Site.Params.contentCopyright | safeHTML }} - {{- end }} + {{- end -}} + </span> </p> </div> {{- end }}
\ No newline at end of file |