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 @@
-
<%-
-popular_posts_wrapper({
- title: __('meta.related_posts'),
- json: popular_posts_json({ maxCount: 5 , ulClass: 'related-posts' , PPMixingRate: 0.2 , isImage: true , isExcerpt: true} , page )
-}) %>
+<%
+function layoutDiv() {
+ if (theme.article.related_posts.enable) {
+ var el = '';
+ el += '';
+ el += popular_posts_wrapper({
+ title: __('meta.related_posts'),
+ json: popular_posts_json({ maxCount: 5 , ulClass: 'related-posts' , PPMixingRate: 0.2 , isImage: true , isExcerpt: true} , page )
+ });
+ el += '
';
+ return el;
+ }
+ return;
+}
+%>
+<%- layoutDiv() %>