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