refactor(layout): call Date() directly

This commit is contained in:
MDLeom 2020-03-25 01:48:04 +00:00
parent 66f5700b10
commit 80a95935f5
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
<hr>
<% } %>
<div id="copyright" class="copyright">
&copy; 2018-<%= date(new Date(), 'YYYY') %> <%= config.author %>. <%- link('https://gitlab.com/curben/blog', 'Powered by ') %> <%- link('https://hexo.io/', 'Hexo') %> with <%- link('https://gitlab.com/curben/blog/tree/master/themes/chameleon', 'Chameleon') %> theme. <br/>Content is available under <a href="https://creativecommons.org/licenses/by-sa/4.0/" rel="license" itemprop="license">CC-BY-SA 4.0</a>, unless indicated otherwise.<br/>
&copy; 2018-<%= new Date().getUTCFullYear() %> <%= config.author %>. <%- link('https://gitlab.com/curben/blog', 'Powered by ') %> <%- link('https://hexo.io/', 'Hexo') %> with <%- link('https://gitlab.com/curben/blog/tree/master/themes/chameleon', 'Chameleon') %> theme. <br/>Content is available under <a href="https://creativecommons.org/licenses/by-sa/4.0/" rel="license" itemprop="license">CC-BY-SA 4.0</a>, unless indicated otherwise.<br/>
<% for (const i in theme.footer) { %>
<a class="main-nav-link" href="<%- url_for(theme.footer[i]) %>"><%= i %></a>
<% } %>