Homepage will refer to posts list by default.
To create a custom homepage, follow these steps:
- Dusable the default homepage
In your friday configuration in astro.config.*
, set pages.home
to false
:
export default defineConfig({
integrations: [
Friday({
// other options...
pages: {
home: false,
},
}),
],
})
- Add a index page in
src/pages/index.astro
Maybe you want to use layout from friday, you can do like this:
---
import DefaultLayout from 'astro-friday/layouts/Default.astro'
---
<DefaultLayout>
{/* Your custom homepage content here */}
</DefaultLayout>