Initial Commit
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
public/
|
||||||
|
resources/
|
||||||
|
assets/jsconfig.json
|
||||||
|
.hugo_build.lock
|
21
LICENSE
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Bjørn Erik Pedersen
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
28
assets/css/styles.css
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
background-color: #101010;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
|
||||||
|
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
position: fixed;
|
||||||
|
top: 1rem;
|
||||||
|
left: 1rem;
|
||||||
|
z-index: 2;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: 2px 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gd-modal-loaded .logo {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
color: #ffe0c9;
|
||||||
|
}
|
BIN
assets/images/watermark.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
content/images/0CFAB74A-A850-4B28-AAB7-29D2C8852610.jpg
Normal file
After Width: | Height: | Size: 537 KiB |
BIN
content/images/FC764D48-D320-4653-93A9-E2EEFE571285.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
content/images/IMG_1283.jpg
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
content/images/IMG_1299.jpg
Normal file
After Width: | Height: | Size: 2.7 MiB |
BIN
content/images/IMG_1374.jpg
Normal file
After Width: | Height: | Size: 2.3 MiB |
BIN
content/images/IMG_1437.jpg
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
content/images/IMG_1439.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
content/images/IMG_1449.jpg
Normal file
After Width: | Height: | Size: 1.8 MiB |
BIN
content/images/IMG_1457.jpg
Normal file
After Width: | Height: | Size: 2.5 MiB |
BIN
content/images/IMG_1461.jpg
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
content/images/IMG_1473.jpg
Normal file
After Width: | Height: | Size: 2.1 MiB |
BIN
content/images/IMG_1477.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_1498.jpg
Normal file
After Width: | Height: | Size: 1.1 MiB |
BIN
content/images/IMG_3603.jpg
Normal file
After Width: | Height: | Size: 772 KiB |
BIN
content/images/IMG_3629.jpg
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
content/images/IMG_3655.jpg
Normal file
After Width: | Height: | Size: 1,021 KiB |
BIN
content/images/IMG_3711.jpg
Normal file
After Width: | Height: | Size: 1.3 MiB |
BIN
content/images/IMG_3712.jpg
Normal file
After Width: | Height: | Size: 842 KiB |
BIN
content/images/IMG_3735.jpg
Normal file
After Width: | Height: | Size: 394 KiB |
BIN
content/images/IMG_3808.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_3884.jpg
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
content/images/IMG_3945.jpg
Normal file
After Width: | Height: | Size: 597 KiB |
BIN
content/images/IMG_3947.jpg
Normal file
After Width: | Height: | Size: 2.3 MiB |
BIN
content/images/IMG_4049.png
Normal file
After Width: | Height: | Size: 2 MiB |
BIN
content/images/IMG_4065.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_6547.jpg
Normal file
After Width: | Height: | Size: 3.3 MiB |
BIN
content/images/IMG_6548.jpg
Normal file
After Width: | Height: | Size: 3 MiB |
BIN
content/images/IMG_6554.jpg
Normal file
After Width: | Height: | Size: 2.6 MiB |
BIN
content/images/IMG_7386.jpg
Normal file
After Width: | Height: | Size: 517 KiB |
BIN
content/images/IMG_7387.jpg
Normal file
After Width: | Height: | Size: 518 KiB |
BIN
content/images/IMG_7495.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7496.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7497.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7498.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_7499.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_7500.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_7501.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7502.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_7503.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7508.jpg
Normal file
After Width: | Height: | Size: 1.7 MiB |
BIN
content/images/IMG_7511.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
BIN
content/images/IMG_7512.jpg
Normal file
After Width: | Height: | Size: 1.6 MiB |
4
content/images/index.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: The Gallery
|
||||||
|
headless: true
|
||||||
|
---
|
5
go.mod
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
module github.com/bep/gallerydeluxe_starter
|
||||||
|
|
||||||
|
go 1.19
|
||||||
|
|
||||||
|
require github.com/bep/gallerydeluxe v0.11.1 // indirect
|
18
go.sum
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
github.com/bep/gallerydeluxe v0.6.0 h1:HM32hGtRP93rRoSdlLne/IzjmJBIbtiuCkSbj/tBtho=
|
||||||
|
github.com/bep/gallerydeluxe v0.6.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.7.0 h1:X+HoxJQOmpi08Re7wJRk0QsrLbNKYIgAxupmQQ66xKc=
|
||||||
|
github.com/bep/gallerydeluxe v0.7.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.8.1 h1:PD3x1GVebSrfAxHDsebt8Trc9aZmF+PA4mXw6l/bABo=
|
||||||
|
github.com/bep/gallerydeluxe v0.8.1/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.0 h1:l/FD9aUq78Yy/ltXF0CTAk3FwInCXXxIwCDKLNkoqjU=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.1 h1:Ca78oSIglf4gPu7yopQ4M/fsqiPQLqvXNMT2xX3KYRQ=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.1/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.2 h1:5dep3RdyiwUpMqzAjrwoKgM0O9y8fvR9J5QZk13/lZk=
|
||||||
|
github.com/bep/gallerydeluxe v0.9.2/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.10.0 h1:0CXOArpCD6S0XdhFpXuShnlqx8VJBCrWhKdgi/xdRjE=
|
||||||
|
github.com/bep/gallerydeluxe v0.10.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.11.0 h1:A5me+REJREWnHTC73yKeuXcC7g3V3s0DjgY7EDMwJMQ=
|
||||||
|
github.com/bep/gallerydeluxe v0.11.0/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
||||||
|
github.com/bep/gallerydeluxe v0.11.1 h1:Bls2hBDY7WJ01TKtbmQT0Cl/Nwy8S/r5yj5qBaP7elo=
|
||||||
|
github.com/bep/gallerydeluxe v0.11.1/go.mod h1:sUfRcjREo6DwxPo0sMp0TAxNZiGreOY6DY2dWGpSeR8=
|
4
hugo.work
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
go 1.19
|
||||||
|
|
||||||
|
use .
|
||||||
|
use ../gallerydeluxe
|
47
hugo.yaml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
baseURL: /
|
||||||
|
title: Old Wood Man
|
||||||
|
disableKinds:
|
||||||
|
- section
|
||||||
|
- taxonomy
|
||||||
|
- term
|
||||||
|
params:
|
||||||
|
plausible_domain: ""
|
||||||
|
gallerydeluxe:
|
||||||
|
shuffle: true
|
||||||
|
reverse: true
|
||||||
|
enable_exif: false
|
||||||
|
watermark:
|
||||||
|
image: images/watermark.png
|
||||||
|
posx: right
|
||||||
|
posy: bottom
|
||||||
|
build:
|
||||||
|
cacheBusters:
|
||||||
|
- source: content/.*\.(png|jpg|jpeg)
|
||||||
|
target: (json)
|
||||||
|
- source: layouts/.*
|
||||||
|
target: (json)
|
||||||
|
#caches:
|
||||||
|
#images:
|
||||||
|
#dir: :cacheDir/gallerydeluxe
|
||||||
|
#maxAge: 24h
|
||||||
|
imaging:
|
||||||
|
resampleFilter: CatmullRom
|
||||||
|
quality: 90
|
||||||
|
anchor: smart
|
||||||
|
server:
|
||||||
|
headers:
|
||||||
|
- for: /**
|
||||||
|
values:
|
||||||
|
Referrer-Policy: strict-origin-when-cross-origin
|
||||||
|
module:
|
||||||
|
mounts:
|
||||||
|
- source: assets
|
||||||
|
target: assets
|
||||||
|
- source: layouts
|
||||||
|
target: layouts
|
||||||
|
- source: content
|
||||||
|
target: content
|
||||||
|
- source: static
|
||||||
|
target: static
|
||||||
|
imports:
|
||||||
|
- path: github.com/bep/gallerydeluxe
|
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
|
@ -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 }}
|
||||||
|
|
0
layouts/partials/logo.html
Normal file
1
static/favicon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg id="AvengingSystems" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 819.2 819.2"><defs><style>.cls-1{fill:#666766;}</style></defs><g id="AS_Logo_-_Original" data-name="AS Logo - Original"><path class="cls-1" d="M415.59117,568.52117V501.2409H695.73228c26.68018,0,45.24024-17.98,45.24024-47.56006s-19.14014-47.56006-45.24024-47.56006H521.15147c-63.80029,0-110.20044-44.08007-110.20044-107.30029,0-64.38037,46.40015-107.30029,110.20044-107.30029h284.781V258.8H524.05138c-25.52,0-42.91993,16.82032-42.91993,45.24024,0,27.84033,17.39991,45.24023,42.91993,45.24023H698.63219c65.54,0,112.5205,45.24024,112.5205,109.62061,0,65.54-46.98046,109.62011-112.5205,109.62011Z"/><path d="M416.193,568.52117l-38.86035-69.60009H165.63194l30.74-56.84033H345.43224l-94.54-170.52051L86.17174,568.52117H9.03136L210.2921,211.23992c7.54-13.33984,18.56006-19.71972,32.48-19.71972h16.24023c13.91993,0,24.35987,6.37988,31.89991,19.71972L492.173,568.52117Z"/></g></svg>
|
After Width: | Height: | Size: 947 B |