Skip to content

Commit

Permalink
fix: fix the footer copyright period when it is within the same year
Browse files Browse the repository at this point in the history
  • Loading branch information
lyujp committed Oct 10, 2024
1 parent 240364b commit c999714
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layout/_partial/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const has_count_info = show_pv || show_uv || show_word_count
%>
<footer class="footer border-box">
<div class="copyright-info info-item">
&copy;&nbsp;<% if (f_since) { %><span><%= f_since %></span>&nbsp;-&nbsp;<% } %><%= date(new Date(), 'YYYY') %>
&copy;&nbsp;<% if (f_since) { %>
<span><%= f_since %></span>
<% } if(f_since != date(new Date(), 'YYYY')) {%>
&nbsp;-&nbsp;<%= date(new Date(), 'YYYY') %>
<% } %>
<% if (web_master) { %>
&nbsp;<i class="fas fa-heart icon-animate"></i>&nbsp;&nbsp;<a href="<%- url_for('/') %>"><%= web_master %></a>
<% } %>
Expand Down

0 comments on commit c999714

Please sign in to comment.