Write Front Matter

Basic Example #

yaml
---
title: "Post Title"
date: 2026-01-01
summary: "A short description for lists and search results"
categories: ["Frontend", "Hugo"]
tags: ["Hugo", "SeoTax", "search"]
series: ["Building a Hugo Theme"]
cover: "https://example.com/cover.webp"
thumbnail: "https://example.com/thumb.webp"
---

Key Fields #

FieldPurpose
titlePost title
dateDisplay and sort date
summaryList summary
categoriesTwo-level category path
tagsSearch filters
seriesSeries navigation
coverPost header image
thumbnailPreferred list image

Set hidden: true to exclude a post from the home page and search results.