mirror of https://github.com/dapr/docs.git
Add new tab be configurable
This commit is contained in:
parent
9660b6d469
commit
e01c925821
|
@ -2,7 +2,8 @@
|
|||
{{ $page := .Get "page" }}
|
||||
{{ $link := .Get "link" | default "#" }}
|
||||
{{ $text := .Get "text" }}
|
||||
{{ $opentab := .Get "newtab" | default False }}
|
||||
|
||||
{{- if $page -}}{{- $link = ref . $page -}}{{- end -}}
|
||||
|
||||
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button" target="_blank">{{ $text }}</a>
|
||||
<a class="btn btn-{{ $color }}" href="{{ $link }}" role="button" {{- if $opentab -}}target="_blank"{{- end -}}>{{ $text }}</a>
|
||||
|
|
Loading…
Reference in New Issue