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 }}