This commit is contained in:
Julieñ
2024-05-21 09:41:48 +02:00
parent 4c356a8af2
commit 1bb184cfe4
1646 changed files with 3456 additions and 1 deletions

36
layouts/index.html Normal file
View File

@@ -0,0 +1,36 @@
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width,
initial-scale=1.0" />
<title>{{ .Title }}</title>
<link rel="icon" href="favicon.svg" />
{{ partial "gallerydeluxe/head.html" . }}
{{ partial "head.html" . }}
</head>
<a class="logo" href="{{ site.Home.RelPermalink }}">
{{ partial "logo.html" . }}
</a>
{{/* init.hmlt takes either a slice of .images or a .sourcePath that points to a bundle with images.
An .id will be calculated if not provided. This will be used to create the URL to the data file.
*/}}
{{ $bundle := site.GetPage "images" }}
{{ $images := $bundle.Resources.ByType "image" }}
{{ $gallery := partial "gallerydeluxe/init.html" (dict "sourcePath" "images") }}
{{ $params := site.Params.gallerydeluxe }}
{{/* We currently only support 1 gallery per page, which is create4 by an element with id 'gallerydeluxe',
and a valid data url.
*/}}
<body id="gallerydeluxe" data-gd-image-data-url="{{ $gallery.imageDataUrl }}">
<div id="gd-modal" class="gd-modal">
<span id="gd-modal-close" class="gd-modal-close">&times;</span>
{{ if $params.enable_exif }}
<div id="gd-modal-exif" class="gd-modal-exif"></div>
{{ end }}
</div>
</body>
</html>

View File

@@ -0,0 +1,10 @@
{{ $css := resources.Get "css/styles.css" }}
{{ if hugo.IsProduction}}
{{ $css = $css | minify | fingerprint }}
{{ end }}
<link rel="stylesheet" href="{{ $css.RelPermalink }}"></link>
{{ with site.Params.plausible_domain }}
<script defer data-domain="{{ . }}" src="https://plausible.io/js/plausible.js"></script>
{{ end }}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.4 KiB