Loading... 此插件可以在文章结尾处插入“文章推荐”模块,显示同类标签的文章 Github地址:[https://github.com/tea3/hexo-related-popular-posts](https://github.com/tea3/hexo-related-popular-posts) <!-- more --> ### 安装 在站点根目录下执行`npm install hexo-related-popular-posts --save` ### 配置 在主题`Next`目录下的`_config.yml`中如下配置: ```yaml related_posts: enable: true title: # 定制标题显示文字,如果留空显示“相关文章” display_in_home: false params: maxCount: 5 #PPMixingRate: 0.0 #isDate: false #isImage: false #isExcerpt: false ``` ### 使用 在文章中加入`tag` ```yaml --- title: Hello World tags: - program - diary - web --- Welcome to [Hexo](https://hexo.io/)! This is a sample article. Let's add some tags as above. ... ``` ### 效果如下 ???????? 听说,点击下方广告的人都找到了真爱! Last modification:February 8, 2021 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 1 听说,打赏我的人都找到了真爱!