From ace3bc34d4d37bada9360675329ca3da65b0417c Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Tue, 9 Mar 2021 22:14:20 +0800 Subject: [PATCH] fix related_posts --- .../_partial/main/article/related_posts.ejs | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/layout/_partial/main/article/related_posts.ejs b/layout/_partial/main/article/related_posts.ejs index 6b84a31..04c883d 100644 --- a/layout/_partial/main/article/related_posts.ejs +++ b/layout/_partial/main/article/related_posts.ejs @@ -1,5 +1,16 @@ - +<% +function layoutDiv() { + if (theme.article.related_posts.enable) { + var el = ''; + el += ''; + return el; + } + return; +} +%> +<%- layoutDiv() %>