Questions are as follows
Solution
npm install hexo-auto-canonical --save
After the installation is successful, add the following configuration code to _config.yml
the file :
auto_canonical:
relative: false
extension: '.html'
Run Hexo to generate static pages, and check whether the auto-added canonical markup has been successfully generated.