A generator automatically make canonical link for hexo. You could use this module for your SEO of blog powered by hexo.
npm install --save hexo-auto-canonical
Add an auto canonical helper simply to your html's <head>
block as follows:
with ejs,
<%- autoCanonical(config, page) %>
OR with jade,
| !{ autoCanonical(config, page) }
Copyright (c) 2016, HyunSeob. Licensed under the MIT license.