<% let reprintPolicyEnabled = theme.reprint && theme.reprint.enable; let reprintPolicy = page.reprintPolicy || theme.reprint.default || 'cc_by'; %> <% if (reprintPolicyEnabled) { %>
<% if (reprintPolicy === 'cc_by') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc_by_nd') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_nd_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc_by_sa') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_sa_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc_by_nc') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_nc_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc_by_nc_nd') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_nc_nd_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc_by_nc_sa') { %>
<%= __('author') %>: <%- page.author || config.author %>
<%= __('link') %>: <%- config.url %><%- url_for(page.path) %>
<%= __('reprint') %>: <%= __('use') %> <%= __('cc_by_nc_sa_name') %> <%= __('licensed') %> <%- page.author || config.author %> !
<% } else if (reprintPolicy === 'cc0') { %> <%= __('toTheExtentPossibleUnderLaw') %> <%- page.author || config.author %> <%= __('hasWaivedAllCopyrightAndRelatedOrNeighboringRightsTo') %> 《<%= page.title %>》 <%= __('workPublishedFrom') %> <%= __('cc_0_country') %>

<% } else if (reprintPolicy === 'noreprint') { %> <%= __('noreprint') %> <% } else if (reprintPolicy === 'pay') { %> <%= __('paycontact') %> <%- page.author || config.author %> <%= __('payreprint') %> <% } %>
<% } %>