This pull request is to enhance the features of popular articles.
This enhances the behavior when the website is placed in the sub-path rather than at the top of the domain.
For example, when a website is placed on https://example.com/sub/20019/04/18/title, the feature of popular article works as follows and does not match.
-hexo-related-popular-posts: 2019/04/18/title
-ga-analytics: sub/2019/04/18/title
Use Hexo's URL configuration root to enhance popular article functionality. This configuration includes setting up the website subpath.
Coverage remained the same at 78.947% when pulling 5a16779d13ebdb90a1eb4c5d1835688ce2a882e0 on lulzneko:master into d9e7687fb6f34a8004cec099f6eb292ff8cae9bf on tea3:master.
This pull request is to enhance the features of popular articles. This enhances the behavior when the website is placed in the sub-path rather than at the top of the domain.
For example, when a website is placed on
https://example.com/sub/20019/04/18/title
, the feature of popular article works as follows and does not match. -hexo-related-popular-posts:2019/04/18/title
-ga-analytics:sub/2019/04/18/title
Use Hexo's URL configuration
root
to enhance popular article functionality. This configuration includes setting up the website subpath.Hexo URL settings ("Sub-path" is written as "subdirectory" in the Hexo documentation) https://hexo.io/docs/configuration#URL
Thank you for developing a wonderful plugin. This plugin is an innovation in the static site generator world! !