2020-01-12 14:33:02 +00:00
|
|
|
{{ $ref := "" }}
|
|
|
|
{{ $target := "" }}
|
|
|
|
|
|
|
|
{{ with .Get "href" }}
|
2020-04-14 23:09:53 +00:00
|
|
|
{{ $ref = . }}
|
|
|
|
{{ $target = "_blank" }}
|
2020-01-12 14:33:02 +00:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with .Get "relref" }}
|
2020-04-14 23:09:53 +00:00
|
|
|
{{ $ref = relref $ . }}
|
2020-01-12 14:33:02 +00:00
|
|
|
{{ end }}
|
|
|
|
|
2020-02-04 23:41:13 +00:00
|
|
|
<span class="gdoc-button{{ with .Get "class" }} {{ . }}{{ end }}">
|
|
|
|
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" {{ end }} class="gdoc-button__link">
|
2020-04-14 23:09:53 +00:00
|
|
|
{{ $.Inner }}
|
2020-01-12 14:33:02 +00:00
|
|
|
</a>
|
2020-02-04 23:41:13 +00:00
|
|
|
</span>
|