Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/caressofsteel/hugo-story.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenneberg <Henneberg@rohr2.de>2022-07-29 21:04:46 +0300
committerHenneberg <Henneberg@rohr2.de>2022-07-29 21:04:46 +0300
commitc7d0045b0dae1ba47da4354d634b868c0bff3220 (patch)
treea72da24c511e4ecd299acfe66840fa5ef949fd01
parent21dd26dda2b0927c2594e9fefd5e527dace6ff46 (diff)
added id to gallery partial
fixes issue #16
-rw-r--r--layouts/partials/gallery.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html
index 11e72c9..4af2fc8 100644
--- a/layouts/partials/gallery.html
+++ b/layouts/partials/gallery.html
@@ -1,5 +1,5 @@
<!-- Gallery -->
-<section class="wrapper style1 align-center">
+<section class="wrapper style1 align-center" {{ with .id }} id="{{ . }}"{{ end }}>
<div class="inner">
<h2>{{ .title }}</h2>
<p>{{ .content | safeHTML }}</p>