Compare commits

..

No commits in common. "6a2d5fd9123bf6287e41973c3a214bbe48e94665" and "b05c7f1920f9bb7696be346988b9121e789b5b76" have entirely different histories.

2 changed files with 4 additions and 5 deletions

View file

@ -14,15 +14,14 @@ interface Props {
}
const defaultTitle = siteConfig.title
const formattedRootPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
const relativePath = Astro.url.pathname
const path = formattedRootPath + (relativePath === '/' ? '' : relativePath)
const formattedPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
const navBarItems = siteConfig.navBarItems
const customFooter = siteConfig.customFooter
const nekoType = siteConfig.neko?.type
const { title, description = siteConfig.description, ogImage = "" } = Astro.props;
const { title, path = formattedPath, description = siteConfig.description, ogImage = "" } = Astro.props;
// TODO: make the path dynamic
---
<!doctype html>

View file

@ -52,7 +52,7 @@ export async function GET(context) {
},
sanitize({ dropElements: ["script", "style"] }),
]);
feedItems.push({ ...post.data, link: `/post/${post.slug}/`, content });
feedItems.push({ ...post.data, link: `/blog/${post.slug}/`, content });
}
// Return our RSS feed XML response.