Better SEO

This commit is contained in:
prototypa
2022-09-11 06:25:00 -04:00
parent dbb9fa1d81
commit 6b845b7437
6 changed files with 39 additions and 24 deletions

View File

@ -26,6 +26,7 @@ const meta = {
title: `Blog ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(page.url.current)),
ogType: "blog"
};
---

View File

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

View File

@ -38,10 +38,11 @@ const meta = {
title: `Category '${category}' ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(page.url.current)),
noindex: true,
};
---
<Layout meta={{ ...meta, noindex: true }}>
<Layout meta={meta}>
<Fragment slot="title">
Category: {category}
</Fragment>

View File

@ -38,10 +38,11 @@ const meta = {
title: `Posts by tag '${tag}' ${currentPage > 1 ? `— Page ${currentPage} ` : ''}— ${SITE.name}`,
description: SITE.description,
canonical: getCanonical(getPermalink(page.url.current)),
noindex: true
};
---
<Layout meta={{ ...meta, noindex: true }}>
<Layout meta={meta}>
<Fragment slot="title">
Tag: {tag}
</Fragment>