Ultimate Hugo + Hextra Formatting Showcase

Ultimate Hugo + Hextra Formatting Showcase

September 6, 2025Β·
Nirmanpreet Singh

Hugo + Hextra Formatting Showcase πŸŽ‰

Welcome to the ultimate test post.
This file demonstrates everything from Markdown basics to Hugo templating magic.


1. Headings & Text Styles

H1 Heading

H2 Heading

H3 Heading with italic

H4 Heading with bold

Text styles: italic, bold, bold italic, strikethrough

Subscript: H2O
Superscript: E = mc2


2. Quotes & Alerts

Normal blockquote

Nested blockquote

This is a note

This is a tip

Important info

Warning message

Be careful!


3. Lists

Ordered

  1. First
  2. Second
    1. Nested
    2. Nested
  3. Third

Unordered

  • Item
  • Another item
    • Sub-item

Tasks

  • Not done
  • Done

4. Tables

Name Age Status
Alice 23 Student
Bob 27 Engineer
Carol 30 Retired

5. Links & Cross References


6. Images

Markdown Image

Nature
Nature

Hugo Figure

Hugo Figure with Caption

Hugo Figure with Caption


7. Code Examples

Inline

Here’s some inline code.

Code Block

hello.py
1
2
def say_hello():
    print("Hello World")

Hugo Highlight

<p>Hello with Hugo highlight</p>

8. Footnotes

This text has a footnote.1


9. Summaries & Read More

Content above <!--more--> is used as summary in lists.
Below is extra content for detail pages.


10. Shortcodes

Callouts

This is an Info Callout.

Cards

Collapsible Details

This text is hidden by default.

Mermaid Diagram

  graph TD;
  A[Start] --> B{Choice?};
  B -->|Yes| C[Path 1];
  B -->|No| D[Path 2];

File Tree

    • _index.md
  • hugo.toml
  • Icons

    GitHub icon:

    Block math:

    F(Ο‰)=βˆ«βˆ’βˆžβˆžf(t)eβˆ’jΟ‰tdt F(\omega) = \int_{-\infty}^\infty f(t)e^{-j\omega t}dt

    Badges

    New

    Releases

    YouTube

    PDF Embed

    Steps

    Step 1

    Install Hugo

    Step 2

    Create a new site

    Step 3

    Run hugo server

    Tabs

    title: "My Site"
    theme: "hextra"
    {
      "title": "My Site",
      "theme": "hextra"
    }

    βœ… Done

    This demo shows:

    • Markdown basics
    • Hugo formatting & features
    • Hextra shortcodes

    Use this as your template for future articles.


    1. This is the footnote. ↩︎

    Last updated on