Skip to content

Commit

Permalink
feat(footer): footer text customize support
Browse files Browse the repository at this point in the history
Merge pull request #389 from viosey/feat/footer
  • Loading branch information
neoFelhz authored Jun 15, 2017
2 parents 63548f7 + 502e89a commit 8b12a9d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _config.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ card_elevation: 2
# For example, if you set it as 2015, then footer will show '© 2015 - 2017'
copyright_since:

# Footer Text
# You can specify the text you want to show in footer, HTML tag is supported.
# For example, you can setup ICP license number as:
# '<a href="http://www.miitbeian.gov.cn" rel="nofollow">某ICP备xxxxxxxx号-x</a>'
# Or you can set up a CC license as:
# 'This blog is under a <a href="/creativecommons.html" target="_blank" class="footer-develop-a">CC BY-NC-SA 3.0 Unported License</a>'
footer_text:

# Qrcode for redirect at other device
# use: choose which method to generate the qrcode for each posts.
# Available value of "use": plugin | online
Expand Down
8 changes: 8 additions & 0 deletions layout/_partial/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
<!--Copyright-->
<div id="copyright">
Copyright&nbsp;©<% if(theme.copyright_since) { %>&nbsp;<%= theme.copyright_since %>&nbsp;-<% } %><script type="text/javascript">var fd = new Date();document.write("&nbsp;" + fd.getFullYear() + "&nbsp;");</script><%- config.title %>
<% if(theme.footer_text) { %>
<br>
<% if(Array.isArray(theme.footer_text)) { %>
<%- theme.footer_text.join('<br>') %>
<% } else { %>
<%- theme.footer_text %>
<% } %>
<% } %>
</div>
<!-- Paradox Footer Right Section -->
Expand Down

0 comments on commit 8b12a9d

Please sign in to comment.