๐ Guide to Configuring and Creating Markdown Posts in /post
Jun 6, 2025ยท
ยท
3 min read

Anderson Morillo

Guide to Configuring and Creating Markdown Posts in /post
This guide summarizes all the ways you can configure and create markdown files in the /post
section of your Hugo Blox site. It covers folder structure, section-level configuration, and all the features you can use in your posts.
Folder Structure
Your /post
directory is organized as follows:
content/post/
โโโ _index.md # Section configuration
โโโ extract-important-words-weirdness/
โ โโโ index.md # Example post
โโโ unigram-frecuency-corpus/
โ โโโ index.md # Example post
โโโ teach-courses/
โ โโโ index.md # Example post
โ โโโ featured.jpg # Media file
โ โโโ ambient-piano.mp3 # Audio file
โโโ second-brain/
โ โโโ index.md # Example post
โ โโโ featured.jpg # Media file
โโโ project-management/
โ โโโ index.md # Example post
โ โโโ featured.jpg # Media file
โโโ get-started/
โ โโโ index.md # Example post
โ โโโ featured.jpg # Media file
โโโ data-visualization/
โโโ index.md # Example post
โโโ line-chart.json # Data for chart
โโโ results.csv # Data for table
โโโ featured.jpg # Media file
Section-level Configuration: _index.md
The _index.md
file configures the section. Example:
---
title: Posts
view: article-grid
---
title
: The section titleview
: Layout style (e.g.,article-grid
)
Post Structure and Features
Each post is a folder (page bundle) with an index.md
file and optional media/data files. Example front matter:
---
title: "Your Post Title"
summary: "A short summary of your post."
date: 2025-06-07
authors:
- admin
tags:
- Tag1
- Tag2
image:
caption: 'Image credit: [**Unsplash**](https://unsplash.com)'
math: true # Enable LaTeX math (optional)
---
Content Features
- Headings, lists, links, images: Standard Markdown
- Shortcodes: Add dynamic content
- YouTube:
- Audio:
- Video:
{{< video src="my_video.mp4" controls="yes" >}}
- Table:
customer_id score 1 0 2 0.5 3 1 Table 1: My results - Chart:
- Mermaid diagrams: Use fenced code blocks with
mermaid
- Spoiler:
Click to view
Hidden content
- YouTube:
- Code blocks: Syntax highlighting for many languages
- Math: Inline
$...$
and block$$...$$
LaTeX - Media: Place images, audio, or video in the post folder and reference them
Example: Data Visualization Post
---
title: "๐ Communicate your results effectively with the best data visualizations"
summary: "Use popular tools such as Plotly, Mermaid, and data frames."
date: 2023-10-25
authors:
- admin
tags:
- Hugo
- Hugo Blox
- Markdown
image:
caption: 'Image credit: [**Unsplash**](https://unsplash.com)'
---
## Charts
## Diagrams
```mermaid
graph TD
A[Hard] -->|Text| B(Round)
B --> C{Decision}
C -->|One| D[Result 1]
C -->|Two| E[Result 2]
Data Frames
customer_id | score |
---|---|
1 | 0 |
2 | 0.5 |
3 | 1 |
### Example: Embedding Media and Math
```markdown
---
title: "๐ฉ๐ผโ๐ซ Teach academic courses"
math: true
---
## Video
## Audio
## Math
Inline math: `$\nabla F(\mathbf{x}_{n})$` renders as $\nabla F(\mathbf{x}_{n})$
Block math:
$$
\gamma_{n} = \frac{ \left | \left (\mathbf x_{n} - \mathbf x_{n-1} \right )^T \left [\nabla F (\mathbf x_{n}) - \nabla F (\mathbf x_{n-1}) \right ] \right |}{\left \|\nabla F(\mathbf{x}_{n}) - \nabla F(\mathbf{x}_{n-1}) \right \|^2}
$$
Tips
- Use folders for each post to keep related media and data together
- Use front matter to enable features (math, tags, etc.)
- Use shortcodes for dynamic and rich content