crude image gallery with lightbox

This commit is contained in:
2024-04-07 16:37:20 +02:00
parent 95dadaa1b9
commit 3aa5db585f
7 changed files with 52 additions and 2 deletions
@@ -4,4 +4,5 @@
<title>Knäckebootcrew</title>
{{ $styles := resources.Get "style.css" }}
<link rel="stylesheet" href="{{ $styles.Permalink }}" />
<link rel="stylesheet" href="/css/lightbox.min.css" />
</head>
@@ -0,0 +1,6 @@
{{ $image := (.Page.Resources.ByType "image") }}
{{ with $image }}
{{ range . }}
<a href="{{ .Permalink }}" data-lightbox="x"><img src="{{ .Permalink }}" /></a>
{{ end }}
{{ end }}