添加主题自定义配置参数

This commit is contained in:
dmxiaoshen
2023-04-21 10:35:32 +08:00
parent 50b1123c4a
commit cb692ea862
7 changed files with 105 additions and 108 deletions
+8 -4
View File
@@ -27,7 +27,9 @@
<ul class="list-group">
<li class="list-group-item title">
<a href="<%= post.link %>" target="_self"><%= post.title %></a>
<div class="word-count2"><%= post.stats.words %>字</div>
<% if (site.customConfig.wordcount) { %>
<div class="word-count2"><%= post.stats.words %>字</div>
<% } %>
<div class="date" style="color:darkgray;font-size:80%"><%= post.dateFormat %></div>
</li>
</ul>
@@ -36,9 +38,11 @@
<% }); %>
<h3>&nbsp;</h3>
<%- include('./_blocks/pagination') %>
<div style="text-align: right;">
↶ <a href="/">返回首页</a>
</div>
<% if (site.customConfig.homeback) { %>
<div style="text-align: right;">
↶ <a href="/">返回首页</a>
</div>
<% } %>
</div>
</div>
<%- include('./_blocks/scripts') %>