This is a sample/test post. It exists so the freshly initialized site has one page that exercises headings, prose, links, and a code block. Delete it (and this file) when you publish your first real article.
Why this post exists
The repository was bootstrapped with Hugo and the PaperMod theme. This page is a smoke test for the rendering pipeline: front matter, Markdown, syntax highlighting, table of contents, and reading time.
What to check on this page
- The table of contents is generated from the headings below.
- Reading time appears under the post title.
- The code block has a copy button in its corner.
- Tags at the bottom link to the
tagstaxonomy.
A code block
PaperMod highlights fenced code blocks with class-based Chroma styles:
from dataclasses import dataclass
@dataclass(frozen=True)
class Post:
title: str
tags: tuple[str, ...]
def summary(self) -> str:
return f"{self.title} [{', '.join(self.tags)}]"
print(Post("Hello, Hugo", ("meta", "hugo")).summary())
Shell commands work the same way:
# Build the site for production
hugo --gc --minify
Working with the site locally
Start the development server with drafts enabled:
hugo server -D
Then edit files under content/ and the browser reloads automatically. When you
are ready to publish, commit and push — the production build is generated with
hugo --gc --minify.
Next steps
- Replace the placeholder
title,description, and social links inhugo.toml. - Write a real first post under
content/posts/. - Delete this sample post when it is no longer needed.