๐Ÿ“š Guide to Configuring and Creating Markdown Posts in /post

Jun 6, 2025ยท
Anderson Morillo
Anderson Morillo
ยท 3 min read
Image credit: Unsplash

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 title
  • view: 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_idscore
      10
      20.5
      31
      Table 1: My results
    • Chart:
    • Mermaid diagrams: Use fenced code blocks with mermaid
    • Spoiler:
      Click to view
      Hidden content
  • 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_idscore
10
20.5
31
Table 1: My results

### 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

References