Socket
Socket
Sign inDemoInstall

hexo-auto-canonical

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.1.1

3

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc