This commit is contained in:
dolphinau 2026-01-06 19:08:48 +01:00
parent d15c7be6af
commit e4374e3f74
No known key found for this signature in database
5 changed files with 58 additions and 5 deletions

View file

@ -506,3 +506,29 @@ footer {
margin-bottom: 30px; margin-bottom: 30px;
} }
} }
.galerie-table {
align-items: center;
display:inline-block;
margin-right: auto;
margin-left: auto;
line-height: 0;
-webkit-column-count: 5;
-webkit-column-gap: 0px;
-moz-column-count: 5;
-moz-column-gap: 0px;
column-count: 5;
column-gap: 0px;
}
.galerie-entry {
padding: 8px;
}
.galerie-image {
width: 100%;
border-radius: 8px;
box-shadow: 0 0 16px #333;
width: 100% !important;
height: auto !important;
}

View file

@ -1,5 +0,0 @@
---
title: "Galerie"
---
Bientôt disponible…

14
content/galerie/index.md Normal file
View file

@ -0,0 +1,14 @@
---
title: "Galerie"
type: "galerie"
---
# Galerie
| | | |
| - | - | - |
| Test 2 | volcan4.jpeg |
| Test 1 | volcan1.jpeg |
| Test 2 | volcan3.jpeg |
| Test 2 | volcan2.jpeg |
| Test 2 | volcan5.jpeg |

View file

@ -0,0 +1,13 @@
<div class="galerie-table">
{{ range .TBody }}
{{ $name := ((index . 0).Text | safeHTML ) }}
{{ $link := ((index . 1).Text | safeURL ) }}
<div class="galerie-entry">
{{ if ne $link "" }}
<img class="galerie-image" src="{{ $link }}" alt="{{ $name }}" />
{{ end }}
</div>
{{ end }}
</div>

View file

@ -0,0 +1,5 @@
{{ define "main" }}
<div class="galerie">
{{ .Content }}
</div>
{{ end }}