Fixed [slug].astro not giving correct permalink

This commit is contained in:
Exerra 2022-11-19 19:43:42 +02:00
parent 937b87938f
commit 364f6ac2f0
No known key found for this signature in database
GPG Key ID: 91206FD40BA7DB5A

View File

@ -14,7 +14,7 @@ export async function getStaticPaths() {
const { Content, frontmatter } = Astro.props.post;
const { title, description, publishDate } = frontmatter;
const { slug, readingTime } = getPostData(Astro.props.post);
const permalink = `${Astro.site.href}${slug}`;
const permalink = `${Astro.site.href}blog/${slug}`;
---
<BaseLayout title={title} description={description} permalink={permalink} current="blog">