meta-generator
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "meta-generator", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Utility for generating document metadata.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -35,3 +35,6 @@ const getTag = require('get-tag'); | ||
'viewport': 'width=device-width, initial-scale=1', | ||
'title': data.title && getTag('title', data.title), | ||
'title': data.title && [ | ||
getTag('title', data.title), | ||
getTag('meta', null, {name: 'title', content: data.title}) | ||
].flat(), | ||
'dns': handleDnsResolution(data.preconnect, data.dns_prefetch), | ||
@@ -38,0 +41,0 @@ 'author': data.name, |
@@ -194,4 +194,3 @@ const getTag = require('get-tag'); | ||
return value; | ||
} | ||
if (tag.includes('twitter')) { | ||
} else if (tag.includes('twitter')) { | ||
return getTag('meta', null, { | ||
@@ -198,0 +197,0 @@ [data.twitter_attr_name || 'name']: tag, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14777
381