You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
464 B
20 lines
464 B
{{ $ref := "" }} |
|
{{ $size := default "regular" (.Get "size" | lower) }} |
|
|
|
{{ if not (in (slice "regular" "large") $size) }} |
|
{{ $size = "regular" }} |
|
{{ end }} |
|
|
|
{{ with .Get "href" }} |
|
{{ $ref = . }} |
|
{{ end }} |
|
|
|
{{ with .Get "relref" }} |
|
{{ $ref = relref $ . }} |
|
{{ end }} |
|
|
|
<span class="gblog-button gblog-button--{{ $size }}{{ with .Get "class" }} {{ . }}{{ end }}"> |
|
<a {{ with $ref }} href="{{.}}" {{ end }} class="gblog-button__link"> |
|
{{ $.Inner }} |
|
</a> |
|
</span>
|
|
|