mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-12-04 05:03:05 +00:00
42c8ec549b
The new highlighter does not work to well if no syntax is specified for the code block / code fence / indention. See https://github.com/gohugoio/hugo/pull/8917
16 lines
732 B
Markdown
16 lines
732 B
Markdown
---
|
|
title: Button
|
|
description : "Nice buttons on your page."
|
|
---
|
|
|
|
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 */%}}
|
|
```
|
|
|
|
{{% 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 %}}
|