:lipstick:🔧 Update the post copyright info.
This commit is contained in:
@@ -3,32 +3,32 @@
|
||||
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "CCLinkTitle" }}"/>
|
||||
<ul>
|
||||
<li class="post-copyright-title">
|
||||
<strong>{{ print (T "PostCRTitle") (T "SymbolColon") }}</strong>
|
||||
<strong>{{ print (T "PostCopyRight.title") (T "SymbolColon") }}</strong>
|
||||
{{ .Title }}
|
||||
</li>
|
||||
<li class="post-copyright-author">
|
||||
{{ if isset .Params "author" }}
|
||||
<strong>{{ print (T "PostCROriginAuthor") (T "SymbolColon") }} </strong>
|
||||
{{ .Params.Author }}
|
||||
<strong>{{ print (T "PostCopyRight.origin.author") (T "SymbolColon") }} </strong>
|
||||
{{ .Params.Author }}
|
||||
{{ else }}
|
||||
<strong>{{ print (T "PostCRAuthor") (T "SymbolColon") }} </strong>
|
||||
{{ .Site.Params.author }}
|
||||
<strong>{{ print (T "PostCopyRight.author") (T "SymbolColon") }} </strong>
|
||||
{{ .Site.Params.author }}
|
||||
{{ end }}
|
||||
</li>
|
||||
<li class="post-copyright-link">
|
||||
{{ if isset .Params "link" }}
|
||||
<strong>{{ print (T "PostCROriginLink") (T "SymbolColon") }} </strong>
|
||||
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
|
||||
<strong>{{ print (T "PostCopyRight.origin.link") (T "SymbolColon") }} </strong>
|
||||
<a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
|
||||
{{ else }}
|
||||
<strong>{{ print (T "PostCRLink") (T "SymbolColon") }}</strong>
|
||||
<a id="post-cr-link" href="{{ .Permalink | absLangURL }}" title="{{ .Title }}">{{ .Permalink | absLangURL }}</a>
|
||||
<strong>{{ print (T "PostCopyRight.link") (T "SymbolColon") }}</strong>
|
||||
<a id="post-cr-link" href="{{ .Permalink | absLangURL }}" title="{{ .Title }}">{{ .Permalink | absLangURL }}</a>
|
||||
{{ end }}
|
||||
</li>
|
||||
<li class="post-copyright-license">
|
||||
<strong>{{ print (T "PostCRLicenseTitle") (T "SymbolColon") }} </strong>
|
||||
<strong>{{ print (T "PostCopyRight.license.title") (T "SymbolColon") }} </strong>
|
||||
{{ $ccText := .Site.Params.creativeCommons.license | upper }}
|
||||
{{ $ccLink := printf "<a target='_blank' href='https://creativecommons.org/licenses/by-nc-sa/4.0/deed.%s'>%s</a>" (substr .Site.LanguageCode 0 2) $ccText }}
|
||||
{{ printf (T "PostCRLicenseContent") $ccLink | safeHTML }}
|
||||
{{ printf (T "PostCopyRight.license.content") $ccLink | safeHTML }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user