Compare commits
No commits in common. "6a2d5fd9123bf6287e41973c3a214bbe48e94665" and "b05c7f1920f9bb7696be346988b9121e789b5b76" have entirely different histories.
6a2d5fd912
...
b05c7f1920
2 changed files with 4 additions and 5 deletions
|
@ -14,15 +14,14 @@ interface Props {
|
||||||
}
|
}
|
||||||
|
|
||||||
const defaultTitle = siteConfig.title
|
const defaultTitle = siteConfig.title
|
||||||
const formattedRootPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
|
const formattedPath = defaultTitle.toLowerCase().replace(/\s+/g, '-');
|
||||||
const relativePath = Astro.url.pathname
|
|
||||||
const path = formattedRootPath + (relativePath === '/' ? '' : relativePath)
|
|
||||||
|
|
||||||
const navBarItems = siteConfig.navBarItems
|
const navBarItems = siteConfig.navBarItems
|
||||||
const customFooter = siteConfig.customFooter
|
const customFooter = siteConfig.customFooter
|
||||||
const nekoType = siteConfig.neko?.type
|
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>
|
<!doctype html>
|
||||||
|
|
|
@ -52,7 +52,7 @@ export async function GET(context) {
|
||||||
},
|
},
|
||||||
sanitize({ dropElements: ["script", "style"] }),
|
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.
|
// Return our RSS feed XML response.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue