Creating Posts with Hugo
Complete guide to creating new posts and content using Hugo's archetype system
Hugo provides a powerful content creation system using archetypes and the hugo new command. This guide explains how to create different types of content in your PKB-theme site.
Understanding Hugo’s Content Structure
Hugo organizes content in sections, which correspond to directories under content/. The PKB-theme supports several content types:
- Posts (
content/posts/) - Blog articles and regular content - Docs (
content/docs/) - Documentation and guides - Pages (
content/about.md) - Static pages like About, Contact
The hugo new Command
The basic syntax for creating new content is:
