Below you will find pages that utilize the taxonomy term “templating”
Posts
Hugo Partials: Building Reusable Template Components
Hugo partials are reusable template fragments — the building blocks of a maintainable Hugo theme. Any piece of HTML that appears in more than one place belongs in a partial: site headers, footers, navigation menus, article cards, SEO meta tags, social sharing blocks, author bios. Once defined, a partial is called with a single line from any template.
This guide covers the full range of how partials work and patterns that make them practical for a publishing site.
Posts
Hugo Shortcodes: How to Create and Use Them
Hugo shortcodes are reusable template fragments that can be embedded in Markdown content. They bridge the gap between Markdown’s intentional simplicity and the richer, more structured HTML that publishing sites often need — figure captions, callout boxes, video embeds, custom alert blocks, styled pull quotes — without requiring authors to write raw HTML in their content files.
Hugo ships with a small set of built-in shortcodes and provides a straightforward system for building your own.