gcg-website/layouts/partials/tile-modals.html
Denys Konovalov fdffee234f
All checks were successful
Website Pull Request / Pull-Request-Testbuild (pull_request) Successful in 24s
JIA-Kachel Info
2024-09-15 17:22:11 +02:00

29 lines
1.2 KiB
HTML

<section class="section superhaufen">
<div class="container">
<div class="content text-justify">
{{ .Content }}
</div>
</div>
<div class="container">
<div class="row justify-content-center">
{{ range .Params.tiles }}
{{ partial "modal" . }}
<div class="col-lg-4 col-sm-6">
<div class="card border-primary rounded-0 hover-shadow mb-2">
<div class="container fb-tile-color" style="background-color:{{ .bg_color }};">
<span class="fb-tile-icon" style="color: {{ .font_color }}">{{ partial "mdi" .icon }}</span>
</div>
<div class="card-body d-flex flex-column">
<h4 class="card-title text-truncate">{{ .title }}</h4>
{{ if .external.enable }}
<a href="{{ .external.link | absURL }}" class="btn btn-primary btn-sm mt-auto align-self-start">Mehr anzeigen</a>
{{ else }}
<button type="button" class="btn btn-primary btn-sm mt-auto align-self-start" onclick="$('#{{ md5 .title }}').modal('show');" data-pagefind-ignore>Mehr anzeigen</button>
{{ end }}
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>