cabotia / cabotia.dev/ content/posts/post-template.mdc127a41a5c98e8fc51bad450b54afda15e4ba6bb
1.5 KB Raw Source

+++ title = 'Post template' date = 2026-10-24 description = 'A reference post covering the Markdown elements available on the blog.' draft = false

tags = ['hugo', 'reference']

summary = 'Set a custom summary here, otherwise Hugo uses the first paragraph.'

+++

This is a reference post for the elements used on the blog. Replace this paragraph with the actual introduction.

<!--more-->

A section heading

A regular paragraph with bold text, italic text, inline code, and a link to the Hugo documentation.

A smaller heading

  • First item
  • Second item
    • Nested item
  • Third item
  1. First step
  2. Second step
  3. Third step

A blockquote for pulling out a sentence that matters.

Code

A shell example:

hugo server --buildDrafts

A Go example:

package main

import "fmt"

func main() {
	fmt.Println("hello, cabotiá")
}

Table

Element Purpose
Heading Break the post into sections
List Group related items
Code Show commands or snippets
Quote Highlight a single sentence

Image

The cabotiá logo

Closing

That is the whole template. Copy this file, change the front matter, and replace the body with the actual post.

The <!--more--> marker above the first heading sets the teaser shown on the blog index. Without it, Hugo falls back to the first paragraphs or to the summary value in the front matter.