aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/docs/shortcodes/buttons.md
blob: b8c96bb6ff7d6748ef8d550cd28e2d8771fbb10d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Buttons

Buttons are styled links that can lead to local page or external link.

```tpl
{{</* button relref="/" [class="..."] */>}}Get Home{{</* /button */>}}
{{</* button href="https://github.com/alex-shpak/hugo-book" */>}}Contribute{{</* /button */>}}
```

## Example

{{< button relref="/" >}}Get Home{{< /button >}}
{{< button href="https://github.com/alex-shpak/hugo-book" >}}Contribute{{< /button >}}