20 lines
612 B
HTML
20 lines
612 B
HTML
{{/* This is an adjusted copy of themes/hugo-geekdoc/layouts/shortcodes/button.html */}}
|
|
{{- $ref := .Page.Site.Params.Flamenco.bugreportURL -}}
|
|
{{- $class := "" }}
|
|
{{- $size := default "regular" (.Get "size" | lower) }}
|
|
|
|
{{- if not (in (slice "regular" "large" "small") $size) }}
|
|
{{- $size = "regular" }}
|
|
{{- end }}
|
|
|
|
{{- with .Get "class" }}
|
|
{{- $class = . }}
|
|
{{- end }}
|
|
|
|
<span class="gdoc-button gdoc-button--{{ $size }}{{ with $class }}{{ printf " %s" . }}{{ end }}">
|
|
<a
|
|
class="gdoc-button__link"
|
|
{{- with $ref }}{{ printf " href=\"%s\"" . | safeHTMLAttr }}{{ end }}
|
|
>Report a Bug</a>
|
|
</span>
|