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) }}
|
2021-12-30 14:55:55 +00:00
|
|
|
{{ $size = "regular" }}
|
2021-05-24 13:22:22 +00:00
|
|
|
{{ end }}
|
2020-07-06 18:55:32 +00:00
|
|
|
|
|
|
|
{{ with .Get "href" }}
|
|
|
|
{{ $ref = . }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ with .Get "relref" }}
|
|
|
|
{{ $ref = relref $ . }}
|
|
|
|
{{ end }}
|
|
|
|
|
2021-12-30 14:55:55 +00:00
|
|
|
|
|
|
|
<span class="gblog-button gblog-button--{{ $size }}{{ with .Get "class" }}{{ . }}{{ end }}">
|
|
|
|
<a {{ with $ref }}href="{{ . }}"{{ end }} class="gblog-button__link">
|
|
|
|
{{ $.Inner }}
|
|
|
|
</a>
|
2020-07-06 18:55:32 +00:00
|
|
|
</span>
|