This is a sample post used to demonstrate multi-level headings and the outline hierarchy in the sidebar.

First major section #

This is the body text under the first major section.

Subsection one #

Content inside the subsection.

A deeper subsection #

One level deeper.

Subsection two #

Content inside the subsection.

Second major section #

This is the body text under the second major section.

Subsection A #

Content.

Subsection B #

Content.

Subsection B.1 #

Content.

Wrap-up #

At this point, the table of contents on the right should reflect the multi-level hierarchy.

Image demo #

Below, the demo site’s logo is used as a placeholder to test responsive images (srcset).

This image lives in the demo site’s assets/images/logo.png, and is resolved via page resource lookup with a global assets fallback:

Sample image
Responsive image demo

Syntax highlighting #

Java:

public class HelloWorld {
    public static void main(String[] args) {
        // sample code used to demonstrate highlighting
        String who = "pixel-blog-hugo";
        System.out.println("Hello, " + who + "!");
    }
}

TypeScript:

const greet = (name: string): string => `Hello, ${name}!`;
console.log(greet("pixel-blog-hugo"));

Terminal:

hugo new posts/my-post.md
hugo server -D