From 393e207ae95105643d0f2f9af73b17465a605185 Mon Sep 17 00:00:00 2001 From: Julien WITTOUCK Date: Thu, 22 Jan 2026 17:52:06 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20:=20add=20gallery=20partial?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layouts/partials/photo-gallery.html | 40 ++++++++++++++++++++++ layouts/partials/talks/event.html | 52 +---------------------------- 2 files changed, 41 insertions(+), 51 deletions(-) create mode 100644 layouts/partials/photo-gallery.html diff --git a/layouts/partials/photo-gallery.html b/layouts/partials/photo-gallery.html new file mode 100644 index 0000000..7b7c0a1 --- /dev/null +++ b/layouts/partials/photo-gallery.html @@ -0,0 +1,40 @@ +{{/* +Partial: photo-gallery +Usage: {{ partial "photo-gallery" (dict "page" . "directory" "images" "id" "my-gallery") }} +Usage shortcode: {{< photo-gallery directory="images" id="my-gallery" >}} ou {{< photo-gallery "images" "my-gallery" >}} +- page: (obligatoire pour ressources de page) le contexte de la page (.) +- directory: (optionnel) répertoire des images relatif à assets/ ou aux ressources de la page +- id: (optionnel) ID HTML pour la galerie +*/}} + diff --git a/layouts/partials/talks/event.html b/layouts/partials/talks/event.html index ebe2a39..e6b6042 100644 --- a/layouts/partials/talks/event.html +++ b/layouts/partials/talks/event.html @@ -18,56 +18,6 @@ {{ if .pictures }}

Photos

- +{{ partial "photo-gallery" (dict "page" $.Page "directory" .pictures "id" "gallery" ) }} {{ end }} {{ end }} -- 2.51.2