Permalink
Browse files

add: “since" year in footer

  • Loading branch information...
MOxFIVE committed Apr 23, 2016
1 parent 22f50c9 commit 5b8b95628f71bf99b5cea20fa3aadd8ebd7ccc61
Showing with 5 additions and 1 deletion.
  1. +3 −0 _config.yml
  2. +2 −1 layout/_partial/footer.ejs
View
@@ -28,6 +28,9 @@ favicon: /favicon.png
## https://hexo.io/docs/configuration.html#URL
root_url:
# Year of Site Creation | 网站成立年份
since: 2016
# Social info. Bar | 社交信息展示
## Keep "mailto:" in Email | 设置 Email 时保留 "mailto:"
## Encrypt email 加密邮件地址 http://ctrlq.org/encode/
@@ -2,7 +2,8 @@
<div class="outer">
<div id="footer-info">
<div class="footer-left">
<i class="fa fa-copyright"></i> <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
<i class="fa fa-copyright"></i>
<% if (theme.since && !isNaN(theme.since) && theme.since < date(new Date(), 'YYYY')) { %><%- theme.since%>-<% } %><%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>
</div>
<div class="footer-right">
<a href="http://hexo.io/" target="_blank" title="<%= __('tooltip.Hexo') %>">Hexo</a> Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="<%= __('tooltip.Yelee') %>">Yelee</a> by MOxFIVE <i class="fa fa-heart animated infinite pulse"></i>

0 comments on commit 5b8b956

Please sign in to comment.