See the original article https://dyingdown.github.io/2020/08/07/How-to-use-hexo-related-popular-posts/
Install
The most convenient way is to use npm to install.
npm install hexo-related-popular-posts --save
Or you can click here to download zip. https://github.com/tea3/hexo-related-popular-posts
Usage
First, add the following popular_posts( {} , post )
helper tag in template file for article.
If you are using PUG, you can use it this way:
div!= popular_posts( {} , post )
If you are using EJS, you can use it this way:
<%-
popular_posts( {} , post )
%>
Since I don’t know the grammar of swig you can search it yo