layout/_partials/drawer/footer.ejs
<div class="theme-drawer__warpper__footer">
<div class="mdui-typo mdui-typo-caption-opacity">
Powered by <a href="http://hexo.io" target="_blank">Hexo</a>
<br />
Theme - <a href="//github.com/Halyul/hexo-theme-mdui" target="_blank">Halyul/MDUI</a>
<br />
<span>
Copyright ©
<span year></span>
<%= config.author %>
</span>
<% if (theme.footer.ICP) { %>
<br />
<span onclick="window.open('http://www.miitbeian.gov.cn/', '_blank');"><%= theme.footer.ICP %></span>
<% } %>
<% if (theme.footer.last_updated !== false) { %>
<br />
<span>
<%- __('global.last_updated') + date(Date.now(), 'MMM DD, YYYY') %>
</span>
<% } %>
<% if (theme.footer.image) { %>
<img class="mdui-img-fluid" src="<%= theme.footer.image %>"/>
<% } %>
</div>
</div>
<script type="text/javascript">
var copyrightNow = new Date().getFullYear();
var textContent = document.querySelector('span[year]')
<% if (theme.footer.since > 0) { %>
copyrightSince = <%= theme.footer.since %>;
if (copyrightSince === copyrightNow) {
textContent.textContent = copyrightNow
} else {
textContent.textContent = copyrightSince + ' - ' + copyrightNow
}
<% } else { %>
textContent.textContent = copyrightNow
<% } %>
</script>