Skip to content

Commit

Permalink
fix: update CC BY-NC-SA 4.0 jump link (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Oct 7, 2023
1 parent 828c1be commit c088a6a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions layout/_partial/post/post-copyright-info.ejs
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
<%
let licenseLang = ''
if (config?.language === 'zh-CN') {
licenseLang = '.zh-hans'
}
if (config?.language === 'zh-TW') {
licenseLang = '.zh-hant'
}
%>
<div class="article-copyright-info-container border-box">
<div class="copyright-info-content border-box">
<div class="copyright-info-top border-box">
Expand All @@ -15,7 +26,7 @@
<div class="type">
<%- __('copyright.author') %>
</div>
<div class="content"><%= theme?.base_info?.author || config.author %></div>
<div class="content"><%= theme?.base_info?.author || config?.author || 'Anonymous' %></div>
</div>
<div class="post-time bottom-item">
Expand All @@ -31,7 +42,7 @@
<%- __('copyright.license') %>
</div>
<div class="content tooltip" data-tooltip-content="CC BY-NC-SA 4.0">
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh">
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed<%= licenseLang %>">
<i class="fa-brands fa-creative-commons"></i>
<i class="fa-brands fa-creative-commons-by"></i>
<i class="fa-brands fa-creative-commons-nc"></i>
Expand Down

0 comments on commit c088a6a

Please sign in to comment.