2017-12-06 12:34:22 +00:00
|
|
|
{{ if or .Params.contentCopyright (and .Site.Params.contentCopyright (ne .Params.contentCopyright false)) }}
|
2017-08-27 14:38:42 +00:00
|
|
|
{{ $lang := .Site.Data.even.default -}}
|
|
|
|
<div class="post-copyright">
|
|
|
|
<p class="copyright-item">
|
2017-09-11 09:38:16 +00:00
|
|
|
<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>
|
2017-08-27 14:38:42 +00:00
|
|
|
</p>
|
|
|
|
<p class="copyright-item">
|
2017-09-11 09:38:16 +00:00
|
|
|
<span class="item-title">{{ $lang.copyright.lastMod }}</span>
|
2017-09-24 16:56:55 +00:00
|
|
|
<span class="item-content">{{ .Lastmod.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }}</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</p>
|
|
|
|
{{ if $.Site.Params.linkToMarkDown -}}
|
|
|
|
{{ with $.OutputFormats.Get "markdown" -}}
|
|
|
|
<p class="copyright-item">
|
2017-09-11 09:38:16 +00:00
|
|
|
<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>
|
2017-08-27 14:38:42 +00:00
|
|
|
</p>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
2017-09-11 09:38:16 +00:00
|
|
|
<p class="copyright-item">
|
|
|
|
<span class="item-title">{{ $lang.copyright.license }}</span>
|
|
|
|
<span class="item-content">
|
|
|
|
{{- if .Params.contentCopyright -}}
|
2017-08-30 14:32:17 +00:00
|
|
|
{{ .Params.contentCopyright | safeHTML }}
|
2017-09-11 09:38:16 +00:00
|
|
|
{{- else -}}
|
2017-08-30 14:32:17 +00:00
|
|
|
{{ .Site.Params.contentCopyright | safeHTML }}
|
2017-09-11 09:38:16 +00:00
|
|
|
{{- end -}}
|
|
|
|
</span>
|
2017-08-27 14:38:42 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
{{- end }}
|