core/template/components/content_href.html

7 lines
349 B
HTML
Raw Normal View History

2024-10-15 17:07:18 -04:00
{{define "content_href"}}
2024-10-29 11:00:24 -04:00
<a class="{{if eq .IsButton true}} btn btn-{{.TypeClass}}{{end}} {{if eq .IsDisabled true}}disabled{{end}}"
{{if .Target}} target="{{.Target}}"{{end}}
href="{{.Link}}" {{if eq .IsButton true}}role="button"{{end}} {{if eq .IsDisabled true}}aria-disabled="true"{{end}}>
{{.Text}}
</a>
{{end}}