[Hexo] Use hexo-related-popular-posts plugin to generates a list of links to related posts or popular posts in Hexo
hexo-related-popular-posts
Hexo is a fast, simple & powerful blog framework. It use plugins to provide features powerful APIs for limitless extensibility. Various plugins are available to support most template engines (EJS, Pug, Nunjucks, and many others). Easily integrate with existing NPM packages (Babel, PostCSS, Less/Sass, etc).
hexo-related-popular-posts
plugin is a hexo plugin that generates a list of links to related posts or popular posts.
Installation
Use npm
to install hexo-related-popular-posts
package.
1 | npm install hexo-related-popular-posts --save |
Configuration
This plugin integrated in «NexT», you may adjust options in NexT config:
1 | # _config.next.yml |
Usage
If tags are included in the article, related articles can be displayed as a list. For example, add a tag like the following markdown file.
1 |
|
Finally, you can visit your site in the browser, and check whether the site works correctly after Hexo restarted or regenerated.