<% if (theme.post.copyright.enable && page.copyright !== false) { %> <% var license = theme.post.copyright.license || '' if (typeof page.copyright === 'string') { license = page.copyright } else if (typeof page.license === 'string') { license = page.license } license = license.toUpperCase() %>
<%= page.title %>
<%= decode_url(page.permalink) %>
<% if (theme.post.copyright.author.enable && (page.author || config.author)) { %>
<%- __('post.copyright.author') %>
<%- page.author || config.author %>
<% } %> <% if (theme.post.copyright.post_date.enable && page.date) { %>
<%- __('post.copyright.posted') %>
<%= full_date(page.date, theme.post.copyright.post_date.format || 'LL') %>
<% } %> <% if (theme.post.copyright.update_date.enable && page.updated && compare_date(page.date, page.updated)) { %>
<%- __('post.copyright.updated') %>
<%= full_date(page.updated, theme.post.copyright.update_date.format || 'LL') %>
<% } %> <% if (license) { %>
<%- __('post.copyright.licensed') %>
<% if (['BY', 'BY-SA', 'BY-ND', 'BY-NC', 'BY-NC-SA', 'BY-NC-ND'].indexOf(license) !== -1) { %> <% var items = license.split('-') %> <% for (var idx = 0; idx < items.length; idx++) { %> <% } %> <% } else { %> <%- license %> <% } %>
<% } %>
<% } %>