Add galerie per concert
|
|
@ -507,11 +507,29 @@ footer {
|
|||
}
|
||||
}
|
||||
|
||||
.galerie {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 20px;
|
||||
}
|
||||
|
||||
.galerie-item {
|
||||
background-color: white;
|
||||
box-shadow: 0 0 16px #333;
|
||||
border-radius: 8px;
|
||||
padding: 8px;
|
||||
width: 95%;
|
||||
margin: 10px auto;
|
||||
}
|
||||
|
||||
.galerie-item h2 {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.galerie-table {
|
||||
columns: 3 300px;
|
||||
column-gap: 1.5rem;
|
||||
width: 90%;
|
||||
margin: 10px auto;
|
||||
padding: 20px;
|
||||
line-height: 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
3
content/galerie/_index.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
title: Galerie des concerts
|
||||
---
|
||||
|
|
@ -1,10 +1,9 @@
|
|||
---
|
||||
title: "Galerie"
|
||||
title: "Vols au-dessus du volcan"
|
||||
type: "galerie"
|
||||
concertLink: "events/1"
|
||||
---
|
||||
|
||||
# Galerie
|
||||
|
||||
| | | |
|
||||
| - | - | - |
|
||||
| v | volcanv1.jpeg |
|
||||
|
Before Width: | Height: | Size: 307 KiB After Width: | Height: | Size: 307 KiB |
|
Before Width: | Height: | Size: 342 KiB After Width: | Height: | Size: 342 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 206 KiB |
|
Before Width: | Height: | Size: 201 KiB After Width: | Height: | Size: 201 KiB |
|
Before Width: | Height: | Size: 300 KiB After Width: | Height: | Size: 300 KiB |
|
Before Width: | Height: | Size: 223 KiB After Width: | Height: | Size: 223 KiB |
|
Before Width: | Height: | Size: 258 KiB After Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 206 KiB After Width: | Height: | Size: 206 KiB |
|
Before Width: | Height: | Size: 303 KiB After Width: | Height: | Size: 303 KiB |
|
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 184 KiB |
|
|
@ -2,15 +2,16 @@
|
|||
{{ range .TBody }}
|
||||
{{ $name := ((index . 0).Text | safeHTML ) }}
|
||||
{{ $link := ((index . 1).Text | safeURL ) }}
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<a href="{{ $link }}"
|
||||
><img
|
||||
<a href="{{ $link }}">
|
||||
<div class="galerie-entry">
|
||||
{{ if ne $link "" }}
|
||||
<img
|
||||
class="galerie-image"
|
||||
src="{{ $link }}"
|
||||
alt="{{ $name }}"
|
||||
/></a>
|
||||
{{ end }}
|
||||
</div>
|
||||
/>
|
||||
{{ end }}
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
|
|
|||
8
layouts/galerie/section.html
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{{ define "main" }}
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="galerie">
|
||||
{{ range .Pages }}
|
||||
{{ partial "galerie/page.html" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
{{ define "main" }}
|
||||
<div class="galerie">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ end }}
|
||||
6
layouts/partials/galerie/page.html
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<div class="galerie-item">
|
||||
<a href="/{{ .Params.concertLink }}">
|
||||
<h2>{{ .Title }}</h2>
|
||||
</a>
|
||||
{{ .Content }}
|
||||
</div>
|
||||