Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_index.md « button « shortcodes « content « exampleSite - github.com/vjeantet/hugo-theme-docport.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f908e9cc95b39ed513fc207e0cbcc013d4eeb41a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
description: Display an actionable button in your page.
title: button
---

Display an actionable button in your page.

{{<button align="center" href="#" theme="warning" >}} This is a warning button {{< /button >}}

## Usage 

| Parameter | Default | Description |
|:--|:--|:--|
| href | "" | The location href to link to |
| ref | "" | The reference of a page to link to  |
| align | "center" | horizontal align button on page |
| theme | `primary` | `default`, `primary` , `success`,`info`,`warning`,`danger` |

The inner text you place in short code will be displayed as the _button text_

## Demo
```
	{{</* button href="https://google.com" */>}} go to google {{</* /button */>}}
	{{</* button href="https://google.com" theme="success" */>}} Success {{</* /button */>}}
	{{</* button href="https://google.com" theme="info" */>}} Info {{</* /button */>}}
	{{</* button href="https://google.com" theme="warning" */>}} Warning {{</* /button */>}}
	{{</* button href="https://google.com" theme="danger" */>}} Danger ! {{</* /button */>}}
	{{</* button href="https://google.com" theme="dark" */>}} Dark ! {{</* /button */>}}
	{{</* button href="https://google.com" theme="light" */>}} Light ! {{</* /button */>}}
	{{</* button ref="columns" theme="secondary" */>}} See page **columns**{{</*/button*/>}}
``` 

{{<button href="https://google.com" >}} go to google {{< /button >}}
{{<button href="https://google.com" theme="success">}} Success {{< /button >}}
{{<button href="https://google.com" theme="info">}} Info {{< /button >}}
{{<button href="https://google.com" theme="warning">}} Warning {{< /button >}}
{{<button href="https://google.com" theme="danger">}} Danger ! {{< /button >}}

{{<button href="https://google.com" theme="dark">}} Dark ! {{< /button >}}
{{<button href="https://google.com" theme="light">}} Light ! {{< /button >}}
{{<button ref="columns" theme="secondary">}} See page **columns** ! {{< /button >}}