Skip to content

Commit

Permalink
perf(readmore): readmore:false 优先级高于 auto_excerpt:true
Browse files Browse the repository at this point in the history
Co-Authored-By: Mr. X <[email protected]>
MHuiG and xaoxuu committed Nov 24, 2022
1 parent f82f547 commit 302bf4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/_partial/post.ejs
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@
showCat = true;
}
let showReadmore = false;
if (theme.article.preview.readmore == 'always' || theme.article.preview.auto_excerpt || ((post.readmore != false) && (post.excerpt || post.description || post.link))) {
if (theme.article.preview.readmore == 'always' || ((post.readmore != false) && (theme.article.preview.auto_excerpt || post.excerpt || post.description || post.link))) {
showReadmore = true;
}
%>

0 comments on commit 302bf4e

Please sign in to comment.