💄🔧 Update the post copyright info.

This commit is contained in:
凡梦星尘 2023-01-01 21:32:18 +08:00
parent a2f37c8470
commit 03fd9dc829
3 changed files with 31 additions and 39 deletions

View File

@ -102,20 +102,16 @@ PostReadMore:
PostEditTitle: PostEditTitle:
other: Edit this post other: Edit this post
PostCRTitle: PostCopyRight:
other: Post Title title: Post Title
PostCRAuthor: author: Post Author
other: Post Author link: Post Link
PostCRLink: origin:
other: Post Link author: Written By
PostCROriginAuthor: link: Originally From
other: Written By license:
PostCROriginLink: title: Copyright Notice
other: Originally From content: "All articles in this blog are licensed under <i class=\"fab fa-fw fa-creative-commons\"></i>%s unless stating additionally."
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."
PostFollowMe: PostFollowMe:
other: Welcome to my other publishing channels other: Welcome to my other publishing channels

View File

@ -103,20 +103,16 @@ PostReadMore:
PostEditTitle: PostEditTitle:
other: 编辑 other: 编辑
PostCRTitle: PostCopyRight:
other: 文章标题 title: 文章标题
PostCRAuthor: author: 本文作者
other: 本文作者 link: 本文链接
PostCRLink: origin:
other: 本文链接 author: 原文作者
PostCROriginAuthor: link: 原文链接
other: 原文作者 license:
PostCROriginLink: title: 版权声明
other: 原文链接 content: "本博客所有文章除特别声明外,均采用 <i class=\"fab fa-fw fa-creative-commons\"></i>%s 许可协议。转载请注明出处!"
PostCRLicenseTitle:
other: 版权声明
PostCRLicenseContent:
other: "本博客所有文章除特别声明外,均采用 <i class=\"fab fa-fw fa-creative-commons\"></i>%s 许可协议。转载请注明出处!"
PostFollowMe: PostFollowMe:
other: 欢迎关注我的其它发布渠道 other: 欢迎关注我的其它发布渠道

View File

@ -3,32 +3,32 @@
<img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "CCLinkTitle" }}"/> <img src="/imgs/cc/cc.svg" width="75" height="75" align="right" alt="{{ T "CCLinkTitle" }}"/>
<ul> <ul>
<li class="post-copyright-title"> <li class="post-copyright-title">
<strong>{{ print (T "PostCRTitle") (T "SymbolColon") }}</strong> <strong>{{ print (T "PostCopyRight.title") (T "SymbolColon") }}</strong>
{{ .Title }} {{ .Title }}
</li> </li>
<li class="post-copyright-author"> <li class="post-copyright-author">
{{ if isset .Params "author" }} {{ if isset .Params "author" }}
<strong>{{ print (T "PostCROriginAuthor") (T "SymbolColon") }} </strong> <strong>{{ print (T "PostCopyRight.origin.author") (T "SymbolColon") }} </strong>
{{ .Params.Author }} {{ .Params.Author }}
{{ else }} {{ else }}
<strong>{{ print (T "PostCRAuthor") (T "SymbolColon") }} </strong> <strong>{{ print (T "PostCopyRight.author") (T "SymbolColon") }} </strong>
{{ .Site.Params.author }} {{ .Site.Params.author }}
{{ end }} {{ end }}
</li> </li>
<li class="post-copyright-link"> <li class="post-copyright-link">
{{ if isset .Params "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> <a target="_blank" href="{{ .Params.OriginLink }}" title="{{ .Title }}">{{ .Params.Link }}</a>
{{ else }} {{ 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> <a id="post-cr-link" href="{{ .Permalink | absLangURL }}" title="{{ .Title }}">{{ .Permalink | absLangURL }}</a>
{{ end }} {{ end }}
</li> </li>
<li class="post-copyright-license"> <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 }} {{ $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 }} {{ $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> </li>
</ul> </ul>
</div> </div>