Custom Homepage

Oct 4 guide

Homepage will refer to posts list by default.

To create a custom homepage, follow these steps:

  1. 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,
      },
    }),
  ],
})
  1. 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>