Frontmatter
- Using a canonical url
- Common Options
- Example: Disabling Breadcrumbs
- Example: Custom Layout
- Example: Using
linktitle - Defaults & Fallbacks
- Notes
Using a canonical url #
If you want to publish content that is already published on a different site you need to reference a canonical URL of the original content. By defining the canonicalUrl in the front matter definition the canonical url is set in the headers.
canonicalUrl: https://mydomain.com/path-to-the-original-content/Common Options #
| Key | Type | Description | Default |
|---|---|---|---|
title | string | The title shown on the page and in metadata | Required |
linktitle | string | Overrides the page title in menus and breadcrumbs | Uses title |
summary | string | Custom page summary shown in list views | Auto-generated |
description | string | Meta description for SEO and previews | Empty |
Example: Disabling Breadcrumbs #
disableBreadcrumbs = trueThis removes the breadcrumb trail from a single page layout.
Example: Custom Layout #
layout = "project"This loads layouts/_default/project.html or a corresponding type fallback.
Example: Using linktitle
#
title = "My Long Page Title"
linktitle = "Short Name"This helps keep breadcrumbs and menus short while using a full title on the page.
Defaults & Fallbacks #
Most fields are optional. When not set:
linktitlefalls back totitlelayoutis inferred fromtypeor content sectionsummaryis generated from the first paragraphdescriptionmay be empty unless manually addeddisableBreadcrumbsisfalseunless set
Notes #
These values apply to all content types and can be overridden per page. Consider using Archetypes for pre-filled front matter in your content structure.