1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:06:38 -04:00

update server-side sitemap.xml code

This commit is contained in:
2022-05-07 20:47:14 -04:00
parent d8363d131a
commit 00d497b69b
7 changed files with 79 additions and 61 deletions

View File

@ -23,6 +23,12 @@ const Container = styled("div", {
display: "block",
});
// stick header to the top of the page when scrolling
const StickyHeader = styled(Header, {
position: "sticky",
top: 0,
});
// footer needs to fill the remaining vertical screen space. doing it here to keep flex stuff together.
const FlexedFooter = styled(Footer, {
flex: 1,
@ -43,7 +49,7 @@ const Layout = ({ container = true, children, ...rest }: LayoutProps) => {
</Head>
<Flex {...rest}>
<Header />
<StickyHeader />
{/* passing `container={false}` to Layout allows 100% control of the content area on a per-page basis */}
{container ? (