This commit is contained in:
Denys Konovalov 2022-10-19 15:54:10 +02:00
parent fbc231d653
commit 5c1ddeac19
2 changed files with 18 additions and 1 deletions

@ -3,7 +3,7 @@ title: Keramik
date: 2022-10-15T16:21:22.895Z
draft: "false"
bg_image: /media/backgrounds/page-title.png
image: /media/ganztagsangebote/image.png
image: /media/ganztagsangebote/keramik.jpg
categories_ag:
- Kunst
duration: 2. Stunden

@ -26,6 +26,23 @@
{{ end }}
{{ end }}
<section class="bg-white">
<div class="container">
<div class="row align-items-center">
{{- $files := readDir "/static/media/logos/start" }}
{{- range $files -}}
{{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl|svg)" }}<!-- is the current file an image? -->
{{- if $isimg }}
{{- $linkURL := print "/media/logos/start" "/" .Name | absURL }}<!-- relative URL -->
<div class="col-md-3 order-1 order-md-2 mb-4 mt-4">
<img class="img-fluid w-100" src="{{ $linkURL }}" alt="about image">
</div>
{{- end }}
{{- end }}
</div>
</div>
</section>
{{ if $data.homepage.about.enable }}
{{ with $data.homepage.about }}
<section class="section">