2020-07-06 18:55:32 +00:00
|
|
|
{{ $ref := "" }}
|
2021-05-24 13:22:22 +00:00
|
|
|
{{ $size := default "regular" (.Get "size" | lower) }}
|
|
|
|
|
|
|
|
{{ if not (in (slice "regular" "large") $size) }}
|
|
|
|
{{ $size = "regular" }}
|
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
|
|
|
|
{{ with .Get "href" }}
|
|
|
|
{{ $ref = . }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with .Get "relref" }}
|
|
|
|
{{ $ref = relref $ . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-05-24 13:22:22 +00:00
|
|
|
<span class="gblog-button gblog-button--{{ $size }}{{ with .Get "class" }} {{ . }}{{ end }}">
|
|
|
|
<a {{ with $ref }} href="{{.}}" {{ end }} class="gblog-button__link">
|
2020-07-06 18:55:32 +00:00
|
|
|
{{ $.Inner }}
|
|
|
|
</a>
|
|
|
|
</span>
|