Initial
This commit is contained in:
36
layouts/index.html
Normal file
36
layouts/index.html
Normal 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">×</span>
|
||||
{{ if $params.enable_exif }}
|
||||
<div id="gd-modal-exif" class="gd-modal-exif"></div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
10
layouts/partials/head.html
Normal file
10
layouts/partials/head.html
Normal 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 }}
|
||||
|
||||
39
layouts/partials/logo.html
Normal file
39
layouts/partials/logo.html
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.4 KiB |
Reference in New Issue
Block a user