Writing content
New pages
hugo new content docs/my-page.md
hugo new content blog/my-post.mdFront matter
Docs pages use weight to control sidebar order; blog posts use date and
tags.
---
title: My page
weight: 3
---Blurbs on the blog list
description is the standfirst shown under a post’s title on /blog/. It
never appears on the post itself, so it is the place for a line that sets up
the post rather than opening it:
---
title: First post
date: 2026-09-13
description: Finally, an actual website.
---Without it the list falls back to the post’s own opening text, cut at `
- which means that line shows up in both places.description`
also becomes the page’s meta description, so search results and link previews
use it too.
Adding a section
A section is a folder under content/ with an _index.md. Create one and it
appears in the sidebar on every page - no config, no layout work:
content/notes/
_index.md # title: Notes, weight: 3
first-note.mdweight on the _index.md sets its position in the sidebar; weight on the
pages inside sets their order under it.
That gives you a docs-style section: the pages show as a collapsible tree. For
a blog-style one instead - dated entries, listed newest first, kept out of the
sidebar tree - copy the front matter from content/blog/_index.md:
---
title: Notes
weight: 3
sidebar:
exclude: false
cascade:
type: blog
sidebar:
exclude: true
---cascade applies to this page as well as its children, so the explicit
sidebar.exclude: false is what keeps the section itself in the sidebar while
its entries stay out.
[[menu.sidebar]] in hugo.toml, and CSS
lifts it above the page tree. That rule assumes a single menu entry - add a
second and it will land in the wrong place.Shortcodes
The theme ships callouts, cards, tabs and more.