diff --git a/_config.example.yml b/_config.example.yml index 360ccbb..bc3a269 100644 --- a/_config.example.yml +++ b/_config.example.yml @@ -140,6 +140,12 @@ post: # You can also use Front-Matter `license` to override this setting # or use Front-Matter `hide_license: true` to hide license on spefic post license: + # License_strong decides whether the copyright description is strengthen(bold). + # For example, if you set license_strong to true with setting up your license as: + # license: 'This blog is under a CC BY-NC-SA 3.0 Unported License.' + # The license description will be show on page as: + # This blog is under a CC BY-NC-SA 3.0 Unported License. + license_strong: true # Table Of Contents which will be show on right side of the post toc: diff --git a/layout/_partial/post/footer-info.ejs b/layout/_partial/post/footer-info.ejs index d4e81d1..aaed061 100644 --- a/layout/_partial/post/footer-info.ejs +++ b/layout/_partial/post/footer-info.ejs @@ -1,5 +1,6 @@ <% if (page.hide_license !== true && theme.post.license || page.license) { %>
+ <% if(theme.post.license_strong != false){ %>

<%- __('post.author') %> : <%= config.author %>
@@ -12,6 +13,19 @@
<%- __('post.permalink') %> : <%= page.permalink %>

+ <%} else {%> +

+ <%- __('post.author') %> : <%= config.author %> +
+ <% if (page.license) { %> + <%- page.license %> + <% } else { %> + <%- theme.post.license %> + <% } %> +
+ <%- __('post.permalink') %> : <%= page.permalink %> +

+ <% } %>
<% } %> @@ -55,4 +69,4 @@ <% } %> -

+

\ No newline at end of file