diff --git a/_config.yml b/_config.yml index 20ec4f4..d796b34 100644 --- a/_config.yml +++ b/_config.yml @@ -273,17 +273,11 @@ follow_me: #RSS: /atom.xml || fa fa-rss # Related popular posts -# Dependencies: https://github.com/tea3/hexo-related-popular-posts +# Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts related_posts: enable: false title: # Custom header, leave empty to use the default one display_in_home: false - params: - maxCount: 5 - #PPMixingRate: 0.0 - #isDate: false - #isImage: false - #isExcerpt: false # Post edit # Easily browse and edit blog source code online. diff --git a/layout/_partials/post/post-related.njk b/layout/_partials/post/post-related.njk index f5b25bc..7d5cd8a 100644 --- a/layout/_partials/post/post-related.njk +++ b/layout/_partials/post/post-related.njk @@ -1,13 +1,13 @@ -{%- set popular_posts = popular_posts_json(theme.related_posts.params, page) %} -{%- if popular_posts.json and popular_posts.json.length > 0 %} +{%- if page.related_posts and page.related_posts.length > 0 %}