crude image gallery with lightbox
This commit is contained in:
@@ -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 }}
|
||||
Reference in New Issue
Block a user