hexo-auto-canonical
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -14,4 +14,3 @@ /** | ||
return '<link rel="canonical" href="' + base_url + page.canonical_path.replace('index.html', '') + '"/>'; | ||
return '<link rel="canonical" href="' + base_url + page.canonical_path.replace('index.html', '').toLowerCase() + '"/>'; | ||
}); | ||
{ | ||
"name": "hexo-auto-canonical", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A generator automatically make canonical tag for hexo.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# hexo-auto-canonical | ||
A generator automatically make canonical tag for hexo: | ||
You could use this module for your SEO of blog powered by hexo.i | ||
[![Downloads](https://img.shields.io/npm/dm/hexo-auto-canonical.svg)](https://www.npmjs.com/package/hexo-auto-canonical) [![npm](https://img.shields.io/npm/v/hexo-auto-canonical.svg)](https://www.npmjs.com/package/hexo-auto-canonical) [![LICENSE](https://img.shields.io/npm/l/hexo-auto-canonical.svg)](LICENSE) | ||
A generator automatically make canonical link for hexo. | ||
You could use this module for your SEO of blog powered by hexo. | ||
## Installation | ||
@@ -12,5 +14,11 @@ ``` | ||
Add an auto canonical helper simply to your html's `<head>` block as follows: | ||
``` | ||
with ejs, | ||
``` ejs | ||
<%- autoCanonical(config, page) %> | ||
``` | ||
OR with jade, | ||
``` jade | ||
| !{ autoCanonical(config, page) } | ||
``` | ||
@@ -17,0 +25,0 @@ ## License |
3590
27