Shortcodes

Custom shortcodes provided by the OSPO Hugo Theme

Shortcodes are snippets you can drop into Markdown content to render theme-specific components that plain Markdown cannot express.

button

Renders a styled call-to-action link.

Syntax

{{< button link="<url>" text="<label>" >}}

Parameters

ParameterRequiredDescription
linkYesDestination URL (relative or absolute). Relative URLs are expanded with Hugo’s absURL.
textYesVisible button label.

Examples

{{< button link="catalog" text="Software Catalog" >}}

{{< button link="https://github.com/ospo-ch/ospo-hugo-theme" text="View on GitHub" >}}

Output

Software Catalog View on GitHub