mirror of https://github.com/dapr/docs.git
Add button shortcode
This commit is contained in:
parent
b02ea5a11d
commit
eace5730f1
|
|
@ -0,0 +1,7 @@
|
|||
{{ $color := .Get "color" | default "primary" }}
|
||||
{{ $page := .Get "page" }}
|
||||
{{ $link := .Get "link" | default "#" }}
|
||||
|
||||
{{- if $page -}}{{- $link = ref . $page -}}{{- end -}}
|
||||
|
||||
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button">{{ .Inner }}</a>
|
||||
Loading…
Reference in New Issue