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
|
|
|
<div class="post-copyright">
|
|
|
|
<p class="copyright-item">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span class="item-title">{{ T "author" }}</span>
|
2017-09-11 09:38:16 +00:00
|
|
|
<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">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span class="item-title">{{ T "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">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span class="item-title">{{ T "markdown" }}</span>
|
|
|
|
<span class="item-content"><a class="link-to-markdown" href="{{ .Permalink }}" target="_blank">{{ T "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">
|
2018-01-31 14:07:50 +00:00
|
|
|
<span class="item-title">{{ T "license" }}</span>
|
2017-09-11 09:38:16 +00:00
|
|
|
<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 }}
|