💄🔧 Update the post copyright info.
This commit is contained in:
parent
a2f37c8470
commit
03fd9dc829
24
i18n/en.yaml
24
i18n/en.yaml
@ -102,20 +102,16 @@ PostReadMore:
|
||||
PostEditTitle:
|
||||
other: Edit this post
|
||||
|
||||
PostCRTitle:
|
||||
other: Post Title
|
||||
PostCRAuthor:
|
||||
other: Post Author
|
||||
PostCRLink:
|
||||
other: Post Link
|
||||
PostCROriginAuthor:
|
||||
other: Written By
|
||||
PostCROriginLink:
|
||||
other: Originally From
|
||||
PostCRLicenseTitle:
|
||||
other: Copyright Notice
|
||||
PostCRLicenseContent:
|
||||
other: "All articles in this blog are licensed under <i class=\"fab fa-fw fa-creative-commons\"></i>%s unless stating additionally."
|
||||
PostCopyRight:
|
||||
title: Post Title
|
||||
author: Post Author
|
||||
link: Post Link
|
||||
origin:
|
||||
author: Written By
|
||||
link: Originally From
|
||||
license:
|
||||
title: Copyright Notice
|
||||
content: "All articles in this blog are licensed under <i class=\"fab fa-fw fa-creative-commons\"></i>%s unless stating additionally."
|
||||
|
||||
PostFollowMe:
|
||||
other: Welcome to my other publishing channels
|
||||
|
@ -103,20 +103,16 @@ PostReadMore:
|
||||
PostEditTitle:
|
||||
other: 编辑
|
||||
|
||||
PostCRTitle:
|
||||
other: 文章标题
|
||||
PostCRAuthor:
|
||||
other: 本文作者
|
||||
PostCRLink:
|
||||
other: 本文链接
|
||||
PostCROriginAuthor:
|
||||
other: 原文作者
|
||||
PostCROriginLink:
|
||||
other: 原文链接
|
||||
PostCRLicenseTitle:
|
||||
other: 版权声明
|
||||
PostCRLicenseContent:
|
||||
other: "本博客所有文章除特别声明外,均采用 <i class=\"fab fa-fw fa-creative-commons\"></i>%s 许可协议。转载请注明出处!"
|
||||
PostCopyRight:
|
||||
title: 文章标题
|
||||
author: 本文作者
|
||||
link: 本文链接
|
||||
origin:
|
||||
author: 原文作者
|
||||
link: 原文链接
|
||||
license:
|
||||
title: 版权声明
|
||||
content: "本博客所有文章除特别声明外,均采用 <i class=\"fab fa-fw fa-creative-commons\"></i>%s 许可协议。转载请注明出处!"
|
||||
|
||||
PostFollowMe:
|
||||
other: 欢迎关注我的其它发布渠道
|
||||
|
@ -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>
|
||||
<strong>{{ print (T "PostCopyRight.origin.author") (T "SymbolColon") }} </strong>
|
||||
{{ .Params.Author }}
|
||||
{{ else }}
|
||||
<strong>{{ print (T "PostCRAuthor") (T "SymbolColon") }} </strong>
|
||||
<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>
|
||||
<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>
|
||||
<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>
|
||||
|
Loading…
Reference in New Issue
Block a user