Fixed [slug].astro not giving correct permalink
This commit is contained in:
parent
937b87938f
commit
364f6ac2f0
@ -14,7 +14,7 @@ export async function getStaticPaths() {
|
|||||||
const { Content, frontmatter } = Astro.props.post;
|
const { Content, frontmatter } = Astro.props.post;
|
||||||
const { title, description, publishDate } = frontmatter;
|
const { title, description, publishDate } = frontmatter;
|
||||||
const { slug, readingTime } = getPostData(Astro.props.post);
|
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">
|
<BaseLayout title={title} description={description} permalink={permalink} current="blog">
|
||||||
|
Loading…
Reference in New Issue
Block a user