mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-22 12:50:40 +00:00
32 lines
835 B
Markdown
32 lines
835 B
Markdown
---
|
|
title: Buttons
|
|
---
|
|
|
|
Buttons are styled links that can lead to local page or external link.
|
|
|
|
## Usage
|
|
|
|
<!-- prettier-ignore -->
|
|
```tpl
|
|
{{</* button relref="/" [class="...", size="large|regular"] */>}}Get Home{{</* /button */>}}
|
|
{{</* button href="https://github.com/thegeeklab/hugo-geekdoc" */>}}Contribute{{</* /button */>}}
|
|
```
|
|
|
|
### Attributes
|
|
|
|
<!-- prettier-ignore-start -->
|
|
<!-- spellchecker-disable -->
|
|
{{< propertylist name=shortcode-buttons sort=name order=asc >}}
|
|
<!-- spellchecker-enable -->
|
|
<!-- prettier-ignore-end -->
|
|
|
|
## Example
|
|
|
|
<!-- prettier-ignore-start -->
|
|
<!-- markdownlint-capture -->
|
|
<!-- markdownlint-disable -->
|
|
{{< button relref="/" >}}Get Home{{< /button >}}
|
|
{{< button href="https://github.com/thegeeklab/hugo-geekdoc" >}}Contribute{{< /button >}}
|
|
<!-- markdownlint-restore -->
|
|
<!-- prettier-ignore-end -->
|