Merge pull request #5 from Exerra/main

Fixed [slug].astro not giving correct permalink
This commit is contained in:
Maxi Ferreira 2023-03-19 08:42:07 -07:00 committed by GitHub
commit e15aebe3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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">