Socket
Socket
Sign inDemoInstall

eleventy-plugin-metagen

Package Overview
Dependencies
213
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

9

.eleventy.js

@@ -6,5 +6,12 @@ const metagen = require('meta-generator');

eleventyConfig.addShortcode('metagen', (data) => {
return metagen(data);
const head = metagen(data);
if (Array.isArray(head)) {
return head.join('\n');
} else if (typeof head === 'string') {
return head;
} else {
return '';
}
});
});
};

4

package.json
{
"name": "eleventy-plugin-metagen",
"version": "1.8.0",
"version": "1.8.1",
"description": "An Eleventy shortcode that generates document metadata containing: Open Graph, Twitter card, generic meta tags and a canonical link.",

@@ -39,3 +39,3 @@ "main": ".eleventy.js",

"@11ty/eleventy": "^2.0.1",
"meta-generator": "^0.1.2"
"meta-generator": "^0.1.3"
},

@@ -42,0 +42,0 @@ "devDependencies": {

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