aboutsummaryrefslogtreecommitdiff
path: root/exampleSite/content/docs/shortcodes/buttons.md
blob: c2ef1e75506ff0c08a869df46ab63575eea25677 (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.

## Example

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

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