Totaal

€10,00

Verzendkosten worden berekend bij het afrekenen.

pages

Used for generating pages and/or cards.

Features

  • Pages are automatically generated from .md and .mdx files in src/content/pages
  • References to other pages, and other collections
  • Setting a preset, which automatically gets merged with the current page
  • Type-safe frontmatter validation with helpful error messages

Frontmatter reference

presets

Type: Filepath of an entry in src/content/presets

component

Type: Filename of a component in src/layouts

theme

Type: 'light' | 'dark' | 'system' | undefined

lang

Type: string | undefined

title

Type: string | undefined

description

Type: string | undefined

image

images

seo

Example

---
presets: [post]
component: PostLayout

seo:
  title: About us - Fulldev
  description: Learn more about Fulldev

title: About us

sections:
  - component: Hero
    tagline: We are a team of passionate developers
    heading: About us
    description: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    buttons:
      - text: Get in touch
        href: /contact
---

# Write your markdown here!

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Disabling page generation

If no content is passed

No page will be generated if no content is passed, meaning the page does not have body content or any of the following frontmatter keys:

  • component
  • section
  • sections

On a global level

You can disable all automatic page generation by setting the injectRoutes option in your astro.config.ts file.

// astro.config.ts
import { defineConfig } from 'astro/config'
import fulldev from 'fulldev-ui/integration'

export default defineConfig({
  integrations: [
    fulldev({
      injectRoutes: false,
    }),
  ],
})

On a per-page level

You can disable page generation per page by setting the inject key to false.

This makes sense for content you might only want to show as a card on another page, like reviews or the showcases on this website.

---
inject: false
---