Format with prettier

This commit is contained in:
prototypa
2022-11-06 14:22:40 -05:00
parent ef74d5dc53
commit 0571bd5eaf
14 changed files with 62 additions and 71 deletions

View File

@ -26,8 +26,8 @@ const meta = {
title: `Blog ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(BLOG?.blog?.pathname)),
ogType: "blog",
noindex: currentPage > 1
ogType: 'blog',
noindex: currentPage > 1,
};
---

View File

@ -30,7 +30,7 @@ const meta = {
canonical: post.canonical || getCanonical(getPermalink(post.slug, 'post')),
image: await findImage(post.image),
ogTitle: post.title,
ogType: "article"
ogType: 'article',
};
---

View File

@ -37,7 +37,7 @@ const currentPage = page.currentPage ?? 1;
const meta = {
title: `Category '${category}' ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(category, "category")),
canonical: getCanonical(getPermalink(category, 'category')),
noindex: true,
};
---

View File

@ -37,8 +37,8 @@ const currentPage = page.currentPage ?? 1;
const meta = {
title: `Posts by tag '${tag}' ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(tag, "tag")),
noindex: true
canonical: getCanonical(getPermalink(tag, 'tag')),
noindex: true,
};
---