Use proper comment

Comment shouldn't be displayed on "View source"
This commit is contained in:
curben 2018-09-16 12:29:03 +09:30
parent bab8a481a9
commit 43a17aa386
2 changed files with 5 additions and 27 deletions

View File

@ -1,31 +1,9 @@
<% if (is_home()) { %>
<%/* Display footer only on /about page */%>
<% if (is_current('about/index.html')) { %>
<footer id="footer" class="home-footer footer">
<div id="copyright" class="copyright">
&copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>. <%= __('powered_by') %> <a href="https://hexo.io/" target="_blank">Hexo</a> with <a href="https://github.com/geekplux/hexo-theme-typing" target="_blank">Typing</a> theme.
<% } else if (is_archive()) { %>
<footer id="footer" class="archive-footer footer">
<% if (theme.icons){ %>
<ul class="footer-links">
<% for (var key in theme.links) { %>
<li><a href="<%= theme.links[key] %>"><span class="fa fa-<%= key %>"></span></a></li>
<% } %>
</ul>
<% } %>
<hr/>
<div id="footerContent" class="footer-content">
<!--%- markdown(theme.archive_footer_content) %-->
<% } else {%>
<footer id="footer" class="post-footer footer">
<% if (theme.icons){ %>
<ul class="footer-links">
<% for (var key in theme.links) { %>
<li><a href="<%= theme.links[key] %>"><span class="fa fa-<%= key %>"></span></a></li>
<% } %>
</ul>
<% } %>
<hr/>
<div id="footerContent" class="footer-content">
<!--%- markdown(theme.post_footer_content) %-->
&copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>. <%= __('powered_by') %> <a href="https://hexo.io/" target="_blank">Hexo</a> with <a href="https://github.com/geekplux/hexo-theme-typing" target="_blank">Typing</a> theme.
<% } %>
</div>
</footer>

View File

@ -1,5 +1,5 @@
<%- partial('_partial/head') %>
<!-- set /about page to use "home" page layout -->
<%/* set /about page to use "home" page layout */%>
<% if (is_current('about/index.html')) { %>
<% if (theme.dark) { %>
<body class="home-body dark">