cabotia / cabotia.dev/ content/posts/post-template.mdc127a41a5c98e8fc51bad450b54afda15e4ba6bb
1.5 KB | 73 lines Raw Preview
1
+++
2
title = 'Post template'
3
date = 2026-10-24
4
description = 'A reference post covering the Markdown elements available on the blog.'
5
draft = false
6
# tags = ['hugo', 'reference']
7
# summary = 'Set a custom summary here, otherwise Hugo uses the first paragraph.'
8
+++
9

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

13
<!--more-->
14

15
## A section heading
16

17
A regular paragraph with **bold text**, *italic text*, `inline code`, and a
18
[link to the Hugo documentation](https://gohugo.io/).
19

20
### A smaller heading
21

22
- First item
23
- Second item
24
  - Nested item
25
- Third item
26

27
1. First step
28
2. Second step
29
3. Third step
30

31
> A blockquote for pulling out a sentence that matters.
32

33
## Code
34

35
A shell example:
36

37
```bash
38
hugo server --buildDrafts
39
```
40

41
A Go example:
42

43
```go
44
package main
45

46
import "fmt"
47

48
func main() {
49
	fmt.Println("hello, cabotiá")
50
}
51
```
52

53
## Table
54

55
| Element  | Purpose                          |
56
| -------- | -------------------------------- |
57
| Heading  | Break the post into sections     |
58
| List     | Group related items              |
59
| Code     | Show commands or snippets        |
60
| Quote    | Highlight a single sentence      |
61

62
## Image
63

64
![The cabotiá logo](/images/Cabotia.svg)
65

66
## Closing
67

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

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