Hugo Shortcodes Library
GitHubToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Partial as Shortcode

A Hugo shortcode to use a Hugo partial from Markdown pages.

How to use

# file.md
{{< partial "partial.html" >}}

Shortcode


{{ partial (.Get 0) }}

Sample

Highlighted Example from Partial


Source: Unknown