60 lines
2.1 KiB
HTML
Raw Normal View History

2023-02-28 08:37:51 +01:00
{{ define "main" }}
<section class="section-sm pb-0">
<div class="container">
<div class="row">
<div class="col-12 mb-4 content">
{{ .Content }}
</div>
</div>
</div>
<div class="container">
<div class="row">
{{ range .Params.tiles }}
<div id="{{ md5 .title }}" class="modal">
<div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">{{ .title }}</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
2023-03-03 17:18:54 +01:00
<div class="content mb-2">
2023-02-28 08:37:51 +01:00
{{ .content | markdownify }}
</div>
2023-02-28 09:33:57 +01:00
{{ range .unterhaufen }}
<div class="container mb-0">
2023-03-03 17:18:54 +01:00
<div class="card border-primary rounded-0 hover-shadow mb-2">
2023-02-28 09:33:57 +01:00
<div class="card-body mb-0">
<details class="mb-0">
<summary class="mb-0">{{ .title }}</summary>
2023-02-28 10:47:36 +01:00
<div class="content"><p class="content">{{ .content | markdownify }}</p></div>
2023-02-28 09:33:57 +01:00
</details>
</div>
</div>
</div>
{{ end }}
2023-02-28 08:37:51 +01:00
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="card border-primary rounded-0 hover-shadow mb-5">
<div class="container fb-tile-color" style="background-color:{{ .bg_color }};">
<i class="{{ .icon }} fb-tile-icon" style="color: {{ .font_color }};"></i>
</div>
<div class="card-body">
<h4 class="card-title">{{ .title | truncate 55 }}</h4>
<button type="button" class="btn btn-primary btn-sm" onclick="$('#{{ md5 .title }}').modal('show');">{{
i18n "show_more"}}</button>
</div>
</div>
</div>
{{ end }}
</div>
</div>
</section>
{{ end }}