mirror of
https://github.com/kremalicious/gatsby-redirect-from.git
synced 2024-06-16 01:13:22 +02:00
Merge 6bd7bc07e4
into c2914069da
This commit is contained in:
commit
31ec90ab29
|
@ -62,7 +62,7 @@ export async function createPages({ graphql, actions }, pluginOptions) {
|
||||||
allPosts.forEach(({ node }) => {
|
allPosts.forEach(({ node }) => {
|
||||||
let _slug
|
let _slug
|
||||||
const { redirect_from, slug } = node.frontmatter
|
const { redirect_from, slug } = node.frontmatter
|
||||||
if (!slug) _slug = node.fields?.slug
|
_slug = slug || node.fields?.slug;
|
||||||
if (!_slug) {
|
if (!_slug) {
|
||||||
console.log(
|
console.log(
|
||||||
'%c %s %c %s',
|
'%c %s %c %s',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user