Add new 'noindex' settings for Blog entitities

This commit is contained in:
prototypa
2023-01-06 15:25:11 -05:00
parent 894058cd5f
commit ba2b6081ed
5 changed files with 8 additions and 4 deletions

View File

@ -23,8 +23,8 @@ const currentPage = page.currentPage ?? 1;
const meta = {
title: `Blog${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
description: SITE.description,
noindex: BLOG?.blog?.noindex || currentPage > 1,
ogType: 'blog',
noindex: currentPage > 1,
};
---

View File

@ -36,7 +36,7 @@ const currentPage = page.currentPage ?? 1;
const meta = {
title: `Category'${category}' ${currentPage > 1 ? ` — Page ${currentPage}` : ''}`,
description: SITE.description,
noindex: true,
noindex: BLOG?.category?.noindex,
};
---

View File

@ -28,7 +28,7 @@ const meta = {
description: post.description,
canonical: post.canonical || undefined,
image: await findImage(post.image),
ogTitle: post.title,
noindex: BLOG?.post?.noindex,
ogType: 'article',
};
---

View File

@ -36,7 +36,7 @@ const currentPage = page.currentPage ?? 1;
const meta = {
title: `Posts by tag '${tag}'${currentPage > 1 ? ` — Page ${currentPage} ` : ''}`,
description: SITE.description,
noindex: true,
noindex: BLOG?.tag?.noindex,
};
---