Merge pull request #5 from Exerra/main
Fixed [slug].astro not giving correct permalink
This commit is contained in:
commit
e15aebe3cd
@ -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