Skip to content

button

Links rendered as Pico buttons, with optional icon and outline.

button renders a link as a Pico role="button" element. Named params: href, style (secondary or contrast), icon and the outline="true" flag. External links get rel="noopener" automatically.

Get started Back to the gallery hugodoks on GitHub

Source

{{< button href="../getting-started/" icon="rocket-launch" >}}Get started{{< /button >}}

{{< button href="../shortcodes/" style="secondary" outline="true" >}}Back to the gallery{{< /button >}}

{{< button href="https://github.com/fernandezvara/hugodoks" style="contrast" icon="code" >}}hugodoks on GitHub{{< /button >}}
Edit this page · Last updated 01 Jan 0001