core/template/components/page_card.html

11 lines
450 B
HTML
Raw Permalink Normal View History

2024-10-07 19:10:04 -04:00
{{define "page_card"}}
<div class="card">
<div class="card-body">
{{if .CardTitle}}<h5 class="card-title">{{.CardTitle}}</h5>{{end}}
{{if .CardSubTitle}}<h6 class="card-subtitle mb-2 text-muted">{{.CardSubTitle}}</h6>{{end}}
{{if .CardBody}}<p class="card-text">{{.CardBody}}</p>{{end}}
{{block "page_card_content" .}}{{end}}
{{if .CardLink}}<a href="{{.CardLink}}" class="card-link">Card link</a>{{end}}
</div>
</div>
{{end}}