Add new 'noindex' settings for Blog entitities
This commit is contained in:
@ -24,20 +24,24 @@ export const BLOG = {
|
|||||||
blog: {
|
blog: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
|
pathname: 'blog', // blog main path, you can change this to "articles" (/articles)
|
||||||
|
noindex: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
post: {
|
post: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
pathname: '', // empty for /some-post, value for /pathname/some-post
|
pathname: '', // empty for /some-post, value for /pathname/some-post
|
||||||
|
noindex: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
category: {
|
category: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
pathname: 'category', // set empty to change from /category/some-category to /some-category
|
pathname: 'category', // set empty to change from /category/some-category to /some-category
|
||||||
|
noindex: true,
|
||||||
},
|
},
|
||||||
|
|
||||||
tag: {
|
tag: {
|
||||||
disabled: false,
|
disabled: false,
|
||||||
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
|
pathname: 'tag', // set empty to change from /tag/some-tag to /some-tag
|
||||||
|
noindex: true,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -23,8 +23,8 @@ const currentPage = page.currentPage ?? 1;
|
|||||||
const meta = {
|
const meta = {
|
||||||
title: `Blog${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
|
title: `Blog${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
|
||||||
description: SITE.description,
|
description: SITE.description,
|
||||||
|
noindex: BLOG?.blog?.noindex || currentPage > 1,
|
||||||
ogType: 'blog',
|
ogType: 'blog',
|
||||||
noindex: currentPage > 1,
|
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ const currentPage = page.currentPage ?? 1;
|
|||||||
const meta = {
|
const meta = {
|
||||||
title: `Category'${category}' ${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
|
title: `Category'${category}' ${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
|
||||||
description: SITE.description,
|
description: SITE.description,
|
||||||
noindex: true,
|
noindex: BLOG?.category?.noindex,
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ const meta = {
|
|||||||
description: post.description,
|
description: post.description,
|
||||||
canonical: post.canonical || undefined,
|
canonical: post.canonical || undefined,
|
||||||
image: await findImage(post.image),
|
image: await findImage(post.image),
|
||||||
ogTitle: post.title,
|
noindex: BLOG?.post?.noindex,
|
||||||
ogType: 'article',
|
ogType: 'article',
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
@ -36,7 +36,7 @@ const currentPage = page.currentPage ?? 1;
|
|||||||
const meta = {
|
const meta = {
|
||||||
title: `Posts by tag '${tag}'${currentPage > 1 ? ` — Page ${currentPage} ` : ''}`,
|
title: `Posts by tag '${tag}'${currentPage > 1 ? ` — Page ${currentPage} ` : ''}`,
|
||||||
description: SITE.description,
|
description: SITE.description,
|
||||||
noindex: true,
|
noindex: BLOG?.tag?.noindex,
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user