Skip to main content
On this page

Homepage Layout Parameters

Deca provides a ready-to-use configurable homepage system. Through these settings, you can easily customize the homepage appearance. These parameters should be defined in the front matter of content/_index.md.

Parameters

---
hero:
  title: "Site Title"
  tagline: "Site Tagline"
  actions:
    - text: "Get Started"
      pageRef: "/learn/tutorials"
      primary: true

features:
  - icon: "⚡"
    title: "Fast"
    description: "Quick to start and operate"
  - icon: "💡"
    title: "Smart"
    description: "Intelligent features and recommendations"

sections:
  - title: "Latest Articles"
    description: "Display recent articles and content"
    items:
      - title: "Article One"
        description: "Description of the first article"
        pageRef: "/articles/1"
      - title: "Article Two"
        description: "Description of the second article"
        pageRef: "/articles/2"

  - title: "Popular Tutorials"
    description: "Featured and trending tutorials"
    items:
      - title: "Tutorial One"
        description: "Description of the first tutorial"
        pageRef: "/tutorials/1"
      - title: "Tutorial Two"
        description: "Description of the second tutorial"
        pageRef: "/tutorials/2"
---
OptionSub-optionDescription
herotitleMain title of the hero section
taglineSubtitle or tagline in the hero section
actionsList of buttons, each configurable with text, link, and style
featuresiconFeature icon
titleFeature title
descriptionFeature description
sectionstitleSection title
descriptionSection description
itemsList of items in the section, each with title, description, and link
itemstitleItem title
descriptionItem description
pageRefPage reference link