Fix issue #55 Trailing Slash

This commit is contained in:
prototypa
2022-11-04 01:34:32 +01:00
parent bacbb86e20
commit fa973ceef7
5 changed files with 8 additions and 2 deletions

View File

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