Files
hugo-book/exampleSite/content.en/docs/content/blog.md

915 B

weight
weight
3

Blog

Hugo Book includes templates for blog-style posts with dates, tags, and pagination. Blog functionality is very basic.

Setup

Create a posts/ section in your content directory

content/
└── posts/
    ├── _index.md
    └── my-first-post.md

Add the blog section to a menu so readers can find it

---
title: Blog
menu:
  after:
    weight: 5
---

Post Frontmatter

---
title: "My First Post"
date: 2025-01-15
tags: ["hugo", "documentation"]
categories: ["Guides"]
---

Thumbnails

Posts can display a thumbnail image. By default the theme looks for a file matching thumbnail.* in the post's page bundle. Override the pattern per-post

---
bookPostThumbnail: "cover.*"
---

Date Format

The date display format is configured site-wide via BookDateFormat. See Configuration for details.