mirror of https://github.com/dapr/docs.git
Update to parameter instead of inner
This commit is contained in:
parent
08b8bf0c15
commit
c58a9faa79
|
@ -1,7 +1,8 @@
|
|||
{{ $color := .Get "color" | default "primary" }}
|
||||
{{ $page := .Get "page" }}
|
||||
{{ $link := .Get "link" | default "#" }}
|
||||
{{ $text := .Get "text" }}
|
||||
|
||||
{{- if $page -}}{{- $link = ref . $page -}}{{- end -}}
|
||||
|
||||
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button">{{ .Inner | replaceRE "(.*)\n" "$1" }}</a>
|
||||
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button">{{ $text }}</a>
|
||||
|
|
Loading…
Reference in New Issue