Shortcodes

Two built-in shortcodes: a newsletter form and a data table.

January 7, 2026

The theme ships with two shortcodes. Hugo also provides its own built-in shortcodes for things like YouTube embeds — see the Hugo docs for those.

newsletter-form

Renders a minimal email signup form with a spam-trap hidden field.

{{< newsletter-form >}}

Before using it, edit layouts/shortcodes/newsletter-form.html (in your own site, not the theme) to fill in the action URL and list hidden field value from your email provider (Buttondown, Mailchimp, ConvertKit, etc.).

The form is intentionally unstyled beyond the base CSS — one text input, one submit button.

show-table

Renders a JSON data file from your data/ directory as an HTML table.

{{< show-table table_data="pricing" use_header="true" >}}

Parameters:

ParamRequiredDescription
table_datayesFilename (without .json) of a file in data/
use_headernoIf "true", the first row becomes <th> header cells
classesnoCSS class(es) added to the <table> element

Data file format — an array of arrays in data/pricing.json:

Tags: reference content