Skip to main content

Blog

Published:

All configurations on blog content type. The blog and docs content types share most of their page and section fields, so the documented below are separate into unique fields and common fields.

These are theme parameters so the fields should goes under params key, e.g,

content/blog/my-post.md
---
# top level: Hugo config
title: "My Post"
type: blog
# params: theme config
params:
  breadcrumb: true
  pageShowMeta: true
---

Page configuration

Unique fields

Accepted fields for individual pages of type blog. If the Front Matter column shows ❌, the field cannot be overridden via front matter.

NameTypeFront MatterDescription
pageSeriesStylestringShow series navigation on the page. Accepts top, bottom, or both. See Series for how series are defined.
pageShowRelatedbooleanShow a list of related posts below the content. See Related Article for how related posts are determined.
pageRelatedLimitintMaximum number of related articles to show.

Common fields

NameTypeFront MatterDescription
linkbooleanURL link to any internal or external page.
breadcrumbbooleanShow breadcrumb navigation above the page title.
pageHeroStylestringRender a hero section above the page. Set to disable to turn it off for a specific page.
pageTOCStylestringWhere the table of contents is rendered. Accepts top, sidebar, or disable. On docs pages, top is treated the same as sidebar.
pageKgStylestringWhere the knowledge graph widget is rendered. See Knowledge Graph for what this widget does.
pageShowActionsbooleanShow action buttons (e.g. share, copy link) next to the page title.
pageShowMetabooleanShow publish date, last-updated date, and author info below the title.
pageShowAuthorsbooleanShow author information. Only takes effect when pageShowMeta is enabled.
pageShowCategoriesbooleanShow the page's categories below the content.
pageShowTagsbooleanShow the page's tags below the content.
pageShowNextbooleanShow previous/next page links at the bottom of the page.
pageShowBacklinksbooleanShow a list of pages that link back to this one.
pageShowStaleWarningbooleanShow a warning when an article has not been updated in pageStaleDays.
pageStaleDaysintNumber of days before an article is considered stale.
pageNoListbooleanExclude this page from search indexing and from list views.

Section configuration

Unique fields

The section fields of blog type is exactly the same as docs type.

Common fields

NameTypeFront MatterDescription
breadcrumbbooleanShow breadcrumb navigation above the page title.
listScopestringWhich pages to list. Set to site to list every regular page on the site, or leave unset to list only pages within the current section.
sectionGroupBystringGroup listed pages under headings. Accepts Date, ExpiryDate, Lastmod, PublishDate, or a page parameter prefixed with Param. (e.g. Param.category). Leave unset to disable grouping.
sectionGroupLayoutstringDate format used for group headings when sectionGroupBy is a date field. See layout strings.
sectionGroupOrderstringOrder of groups. Accepts asc or desc.
sectionSortBystringSort key for listed pages within each group. Accepts Date, ExpiryDate, Lastmod, Length, LinkTitle, PublishDate, Title, Weight, or a page parameter prefixed with Param..
sectionSortOrderstringSort order. Accepts asc or desc.

Article Connections

Accessibility settings

Font size