Front Matter Reference

Complete dictionary of all HugoBlox Front Matter parameters. Configure titles, metadata, feature toggles, and advanced layout options.

Front Matter is the configuration block at the top of your Markdown files, enclosed by ---. It controls the page's metadata, layout, and enabled features.

๐Ÿ“ Core Metadata

Standard metadata used across all content types.

ParameterTypeDescription
titlestringRequired. The title of the page.
datedatePublication date (YYYY-MM-DD). Future-dates aren't published.
summarystringShort summary used in list views and SEO descriptions. Alias description.
authorslistList of author usernames (matching content/authors/) or plain text names.
tagslistTaxonomy tags for filtering and discovery.
categorieslistTaxonomy categories for high-level grouping.
typestringOverrides the content type (e.g., landing, page, post).
weightintegerSort order in lists/menus (lower numbers appear first).
draftbooleanIf true, the page is hidden from the production build.

๐Ÿ–ผ๏ธ Visuals & Header

Configure the page header and featured images.

ParameterTypeDescription
featuredbooleanPin this page to the homepage or "Featured" widgets.
imageobjectConfigures the Featured Image (see object details below).
coverobjectConfigures the Cover Image (see object details below).

image Object

image:
  filename: my-image.jpg  # Path relative to page bundle or in assets/media/
  focal_point: Smart      # Smart, Center, TopLeft, etc.
  preview_only: false     # true = show on social/lists but HIDE on actual page
  alt_text: "Description" # Accessibility text

cover Object

Configures the Notion-style page header.

Simplest Usage: Just upload cover.jpg to your page folder.

Full Configuration:

cover:
  image: "cover.jpg"      # Local filename or remote URL
  alt_text: "My Cover"    # Defaults to page title
  style: "gradient"       # gradient (default), glass, blur, minimal, default
  height: "medium"        # small, medium (default), large, full
  hidden: false           # Hide cover if cover image exists
  
  # Icon Overlay
  icon:
    name: "๐Ÿ“Š"            # Emoji or icon name (e.g. "brands/github") - see Icon Reference
    position: "overlap"   # overlap (default), below, inline
  
  # Image Positioning (0-100%)
  position:
    x: 50
    y: 50
    
  # Advanced Effects
  fade:
    enabled: true         # Fade bottom edge into page
  overlay:
    color: "#000000"      # Custom overlay color
    opacity: 0.3          # Overlay opacity

๐Ÿงฉ Feature Toggles

Enable or disable specific page features.

ParameterTypeDefaultDescription
tocbooleantrueShow the Table of Contents on this page.
sharebooleantrueShow social sharing buttons.
commentablebooleantrueEnable comments (if a provider is configured).
editablebooleantrueShow the "Edit this page" link to GitHub/GitLab.

Attach files, external links, or slides.

ParameterTypeDescription
resourceslistList of downloadable files (PDFs, etc.).
linkslistList of Call-to-Action (CTA) buttons to display in the header.
slidesstringFilename of a slide deck in content/slides/ (no extension).

Example

resources:
  - src: paper.pdf
    title: Read Paper
links:
  - name: Code
    url: https://github.com/...
    icon: brands/github

๐Ÿ› ๏ธ Advanced Rendering

Unlock technical writing features.

ParameterTypeDescription
mathbooleanEnable LaTeX math rendering (KaTeX) but usually auto-detected.

๐Ÿ”Ž SEO & Routing

Advanced control over URLs and search engine visibility.

ParameterTypeDescription
aliaseslistList of old URLs to redirect to this page (e.g., ['/old-post/']).
canonicalstringThe canonical URL for SEO (if content is syndicated).
robotsstringCustom robots meta tag (e.g., noindex).

For practical examples of how to use these parameters to build specific page layouts, see the Page Features Guide.

Was this page helpful?

From the makers of

ยฉ 2026 Lore Labs.

On this page