A generator automatically make canonical tag for hexo.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Latest commit ad4bf9e Jan 3, 2018
Permalink
Failed to load latest commit information.
.gitignore Initial commit Feb 25, 2016
LICENSE Initial commit Feb 25, 2016
README.md Improve a usage with Jade Aug 22, 2016
index.js Implement toLowerCase() to close #1 Nov 28, 2017
package.json Release v0.1.1 Jan 3, 2018

README.md

hexo-auto-canonical

Downloads npm LICENSE

A generator automatically make canonical link for hexo. You could use this module for your SEO of blog powered by hexo.

Installation

npm install --save hexo-auto-canonical

Usage

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) }

License

Copyright (c) 2016, HyunSeob. Licensed under the MIT license.