don't add link if canonicalUrl is present
This commit is contained in:
parent
58f77e8db1
commit
8e9aad6b92
2
package-lock.json
generated
2
package-lock.json
generated
@ -6,7 +6,7 @@
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "tailwind-nextjs-starter-blog",
|
||||
"version": "1.4.3",
|
||||
"version": "1.5.0",
|
||||
"dependencies": {
|
||||
"@fontsource/inter": "4.5.2",
|
||||
"@mailchimp/mailchimp_marketing": "^3.0.58",
|
||||
|
@ -1,3 +1,4 @@
|
||||
const { data } = require('autoprefixer')
|
||||
const fs = require('fs')
|
||||
const globby = require('globby')
|
||||
const matter = require('gray-matter')
|
||||
@ -29,6 +30,9 @@ const siteMetadata = require('../data/siteMetadata')
|
||||
if (fm.data.draft) {
|
||||
return
|
||||
}
|
||||
if (fm.data.canonicalUrl) {
|
||||
return
|
||||
}
|
||||
}
|
||||
const path = page
|
||||
.replace('pages/', '/')
|
||||
|
Loading…
x
Reference in New Issue
Block a user