hugo-geekdoc/exampleSite/content/en/shortcodes/buttons.md

32 lines
835 B
Markdown
Raw Normal View History

---
title: Buttons
---
2020-01-12 14:33:02 +00:00
Buttons are styled links that can lead to local page or external link.
## Usage
<!-- prettier-ignore -->
2020-01-12 14:33:02 +00:00
```tpl
2021-05-24 13:12:58 +00:00
{{</* button relref="/" [class="...", size="large|regular"] */>}}Get Home{{</* /button */>}}
2020-09-27 20:21:29 +00:00
{{</* button href="https://github.com/thegeeklab/hugo-geekdoc" */>}}Contribute{{</* /button */>}}
2020-01-12 14:33:02 +00:00
```
### Attributes
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
{{< propertylist name=shortcode-buttons sort=name order=asc >}}
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
2020-01-12 14:33:02 +00:00
## Example
<!-- prettier-ignore-start -->
<!-- markdownlint-capture -->
<!-- markdownlint-disable -->
2020-01-12 14:33:02 +00:00
{{< button relref="/" >}}Get Home{{< /button >}}
2020-09-27 20:21:29 +00:00
{{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}}
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->