hugo-theme-relearn/exampleSite/content/shortcodes/button.en.md

17 lines
735 B
Markdown
Raw Normal View History

+++
description = "Nice buttons on your page."
title = "Button"
+++
2017-08-20 20:29:35 +00:00
A button is a just a clickable button with optional icon.
```go
{{%/* button href="https://gohugo.io/" */%}}Get Hugo{{%/* /button */%}}
{{%/* button href="https://gohugo.io/" icon="fas fa-download" */%}}Get Hugo with icon{{%/* /button */%}}
{{%/* button href="https://gohugo.io/" icon="fas fa-download" icon-position="right" */%}}Get Hugo with icon right{{%/* /button */%}}
2017-08-20 20:29:35 +00:00
```
{{% button href="https://gohugo.io/" %}}Get Hugo{{% /button %}}
{{% button href="https://gohugo.io/" icon="fas fa-download" %}}Get Hugo with icon{{% /button %}}
{{% button href="https://gohugo.io/" icon="fas fa-download" icon-position="right" %}}Get Hugo with icon right{{% /button %}}