Shortcodes

Polymathic includes several simple shortcodes. To use in your Zola content.

message

    {% message(title="message title") %}

    Some body content

    ### supports markdown

    {% end %}

heroCard

When used with images alt attribute is either provided to the shortcode or derived from file name.

    {% heroCard(hero="my-page-asset.png", banner=true, href="/some-page") %}

    Some body content

    ### supports markdown

    {% end %}

assetCard

When used with images alt attribute is either provided to the shortcode or derived from file name.

    {% assetCard(image="my-page-asset.png") %}

    Some body content

    ### supports markdown

    {% end %}

assetGallery

Renders grid with all assets of current page or section


    {{ assetGallery(exclude=["some.png"],titles=false) }}

field

    {{ field(name="field-name") }}

formButtons

    {{ formButtons(cancel="Some text") }}