Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(footer): footer text customize support #389

Merged
merged 2 commits into from
Jun 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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