Skip to content

Commit 73005cc

Browse files
committed
修改编译错误
1 parent edd99f9 commit 73005cc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

layout/_widget/post_content.ejs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<% if (!index && theme.content_position==='widget' && !archive && !category && !tag && postObj.toc!==false){ %>
2-
<% if (toc(postObj.content)){ %>
1+
<% if (!index && theme.content_position==='widget' && toc(postObj.content || 'giscafer') && postObj.toc!==false){ %>
32
<div class="widget-wrap">
43
<% if (theme.content_position==='widget' && theme.content_display_fixed===true){ %>
54
<div class="widget" id="toc-widget-fixed">
@@ -8,9 +7,8 @@
87
<% } %>
98
<strong class="toc-title"><%= __('post_content') %></strong>
109
<div class="toc-widget-list">
11-
<%- toc(postObj.content) %>
10+
<%- toc(postObj.content || 'giscafer') %>
1211
</div>
1312
</div>
1413
</div>
15-
<% } %>
1614
<% } %>

layout/_widget/recent_posts.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% if (index && site.posts.length || (!index && postObj.toc===false)){ %>
1+
<% if (index && site.posts.length || (!index && (postObj.toc===false || !toc(postObj.content || 'giscafer')))){ %>
22
<div class="widget-wrap">
33
<h3 class="widget-title recent-posts"><%= __('recent_posts') %></h3>
44
<div class="widget">

0 commit comments

Comments
 (0)