Front matter
This page lists the front matter keys that change how Ananke v2.23.0 renders a page. Front matter is the block between +++ (TOML) or --- (YAML) markers at the top of a content file. To set a value for all pages of a section, use cascade in the section’s _index.md.
Hugo keys #
Hugo reads these keys itself; the table says how Ananke uses them. Hugo’s front matter documentation lists all Hugo keys.
divider in the content takes precedence. See [Summaries and reading time](/content/summaries-and-reading-time/). | |date| Date | The date on the page and on cards. See [dates](/configuration/general/#show-or-hide-dates-on-pages). | |weight| Integer | The order in lists and in recent posts, before the date. | |categories, tags| List of strings | Linked terms below the content. See [Taxonomies](/content/taxonomies/). | |menus| String or table | Adds the page to a menu, for examplemenus: main`. See Menus. |
Ananke keys #
Single pages also show related pages next to the content when Hugo’s related content finds any.
Page values of site options #
Many site options can also be set for one page. In front matter, use the same key path without params, for example text_color or ananke.header.content. The configuration reference marks these options with “Site, page”.
Examples #
A post first published elsewhere, with a short menu title:
+++
title = "My long page title"
linktitle = "Short name"
date = 2026-01-01T12:00:00+07:00
canonicalUrl = "https://example.com/path-to-the-original-content/"
toc = true
+++A page with a header image and no text over it:
---
title: Gallery
featured_image: header.jpg
omit_header_text: true
---Other keys #
disableBreadcrumbs: an earlier version of this page listed this key. Ananke shows no breadcrumbs, so the key has no effect.layout: a Hugo key that selects another template for the page, for examplelayout = "project"for your ownlayouts/project.html. See Hugo’s template lookup order.