1b90a7a5d5
* Fix static site dynamic routes for sitemap integration * Add changeset * Update pnpm-lock * Remove console.log
17 lines
294 B
Text
17 lines
294 B
Text
---
|
|
export function getStaticPaths() {
|
|
return [
|
|
{ params: { slug: 'one' }, props: { title: 'One' } },
|
|
{ params: { slug: 'two' }, props: { title: 'Two' } },
|
|
]
|
|
}
|
|
---
|
|
|
|
<html>
|
|
<head>
|
|
<title>{Astro.props.title}</title>
|
|
</head>
|
|
<body>
|
|
<h1>{Astro.props.title}</h1>
|
|
</body>
|
|
</html>
|