commit 7c0a5bc3b7e290d072f6b3969e6bdc793950e1a2 Author: Tyler Hale Date: Fri Mar 22 09:12:58 2024 -0600 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e87b90a --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +public/ +resources/ +assets/jsconfig.json +.hugo_build.lock \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..0f527e1 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/assets/css/styles.css b/assets/css/styles.css new file mode 100644 index 0000000..af02787 --- /dev/null +++ b/assets/css/styles.css @@ -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; +} diff --git a/assets/images/watermark.png b/assets/images/watermark.png new file mode 100644 index 0000000..017b436 Binary files /dev/null and b/assets/images/watermark.png differ diff --git a/content/images/0CFAB74A-A850-4B28-AAB7-29D2C8852610.jpg b/content/images/0CFAB74A-A850-4B28-AAB7-29D2C8852610.jpg new file mode 100644 index 0000000..b17fe52 Binary files /dev/null and b/content/images/0CFAB74A-A850-4B28-AAB7-29D2C8852610.jpg differ diff --git a/content/images/FC764D48-D320-4653-93A9-E2EEFE571285.jpg b/content/images/FC764D48-D320-4653-93A9-E2EEFE571285.jpg new file mode 100644 index 0000000..d36ebd8 Binary files /dev/null and b/content/images/FC764D48-D320-4653-93A9-E2EEFE571285.jpg differ diff --git a/content/images/IMG_1283.jpg b/content/images/IMG_1283.jpg new file mode 100644 index 0000000..295c735 Binary files /dev/null and b/content/images/IMG_1283.jpg differ diff --git a/content/images/IMG_1299.jpg b/content/images/IMG_1299.jpg new file mode 100644 index 0000000..7baa2ee Binary files /dev/null and b/content/images/IMG_1299.jpg differ diff --git a/content/images/IMG_1374.jpg b/content/images/IMG_1374.jpg new file mode 100644 index 0000000..f6ec0ef Binary files /dev/null and b/content/images/IMG_1374.jpg differ diff --git a/content/images/IMG_1437.jpg b/content/images/IMG_1437.jpg new file mode 100644 index 0000000..177017e Binary files /dev/null and b/content/images/IMG_1437.jpg differ diff --git a/content/images/IMG_1439.jpg b/content/images/IMG_1439.jpg new file mode 100644 index 0000000..e376323 Binary files /dev/null and b/content/images/IMG_1439.jpg differ diff --git a/content/images/IMG_1449.jpg b/content/images/IMG_1449.jpg new file mode 100644 index 0000000..acd70f3 Binary files /dev/null and b/content/images/IMG_1449.jpg differ diff --git a/content/images/IMG_1457.jpg b/content/images/IMG_1457.jpg new file mode 100644 index 0000000..dca41a8 Binary files /dev/null and b/content/images/IMG_1457.jpg differ diff --git a/content/images/IMG_1461.jpg b/content/images/IMG_1461.jpg new file mode 100644 index 0000000..ef71349 Binary files /dev/null and b/content/images/IMG_1461.jpg differ diff --git a/content/images/IMG_1473.jpg b/content/images/IMG_1473.jpg new file mode 100644 index 0000000..5219d05 Binary files /dev/null and b/content/images/IMG_1473.jpg differ diff --git a/content/images/IMG_1477.jpg b/content/images/IMG_1477.jpg new file mode 100644 index 0000000..675988b Binary files /dev/null and b/content/images/IMG_1477.jpg differ diff --git a/content/images/IMG_1498.jpg b/content/images/IMG_1498.jpg new file mode 100644 index 0000000..3a928f9 Binary files /dev/null and b/content/images/IMG_1498.jpg differ diff --git a/content/images/IMG_3603.jpg b/content/images/IMG_3603.jpg new file mode 100644 index 0000000..45d41bf Binary files /dev/null and b/content/images/IMG_3603.jpg differ diff --git a/content/images/IMG_3629.jpg b/content/images/IMG_3629.jpg new file mode 100644 index 0000000..1739c5f Binary files /dev/null and b/content/images/IMG_3629.jpg differ diff --git a/content/images/IMG_3655.jpg b/content/images/IMG_3655.jpg new file mode 100644 index 0000000..18b538a Binary files /dev/null and b/content/images/IMG_3655.jpg differ diff --git a/content/images/IMG_3711.jpg b/content/images/IMG_3711.jpg new file mode 100644 index 0000000..c70c773 Binary files /dev/null and b/content/images/IMG_3711.jpg differ diff --git a/content/images/IMG_3712.jpg b/content/images/IMG_3712.jpg new file mode 100644 index 0000000..0fb13de Binary files /dev/null and b/content/images/IMG_3712.jpg differ diff --git a/content/images/IMG_3735.jpg b/content/images/IMG_3735.jpg new file mode 100644 index 0000000..def1229 Binary files /dev/null and b/content/images/IMG_3735.jpg differ diff --git a/content/images/IMG_3808.jpg b/content/images/IMG_3808.jpg new file mode 100644 index 0000000..6c8f1b9 Binary files /dev/null and b/content/images/IMG_3808.jpg differ diff --git a/content/images/IMG_3884.jpg b/content/images/IMG_3884.jpg new file mode 100644 index 0000000..dcfa091 Binary files /dev/null and b/content/images/IMG_3884.jpg differ diff --git a/content/images/IMG_3945.jpg b/content/images/IMG_3945.jpg new file mode 100644 index 0000000..0baa1cd Binary files /dev/null and b/content/images/IMG_3945.jpg differ diff --git a/content/images/IMG_3947.jpg b/content/images/IMG_3947.jpg new file mode 100644 index 0000000..1a5e0b3 Binary files /dev/null and b/content/images/IMG_3947.jpg differ diff --git a/content/images/IMG_4049.png b/content/images/IMG_4049.png new file mode 100644 index 0000000..ec25b65 Binary files /dev/null and b/content/images/IMG_4049.png differ diff --git a/content/images/IMG_4065.jpg b/content/images/IMG_4065.jpg new file mode 100644 index 0000000..8021495 Binary files /dev/null and b/content/images/IMG_4065.jpg differ diff --git a/content/images/IMG_6547.jpg b/content/images/IMG_6547.jpg new file mode 100644 index 0000000..5632220 Binary files /dev/null and b/content/images/IMG_6547.jpg differ diff --git a/content/images/IMG_6548.jpg b/content/images/IMG_6548.jpg new file mode 100644 index 0000000..02fbc62 Binary files /dev/null and b/content/images/IMG_6548.jpg differ diff --git a/content/images/IMG_6554.jpg b/content/images/IMG_6554.jpg new file mode 100644 index 0000000..76ace2b Binary files /dev/null and b/content/images/IMG_6554.jpg differ diff --git a/content/images/IMG_7386.jpg b/content/images/IMG_7386.jpg new file mode 100644 index 0000000..1d2f9a6 Binary files /dev/null and b/content/images/IMG_7386.jpg differ diff --git a/content/images/IMG_7387.jpg b/content/images/IMG_7387.jpg new file mode 100644 index 0000000..af1e8a2 Binary files /dev/null and b/content/images/IMG_7387.jpg differ diff --git a/content/images/IMG_7495.jpg b/content/images/IMG_7495.jpg new file mode 100644 index 0000000..c8e1c30 Binary files /dev/null and b/content/images/IMG_7495.jpg differ diff --git a/content/images/IMG_7496.jpg b/content/images/IMG_7496.jpg new file mode 100644 index 0000000..729c24d Binary files /dev/null and b/content/images/IMG_7496.jpg differ diff --git a/content/images/IMG_7497.jpg b/content/images/IMG_7497.jpg new file mode 100644 index 0000000..6012c00 Binary files /dev/null and b/content/images/IMG_7497.jpg differ diff --git a/content/images/IMG_7498.jpg b/content/images/IMG_7498.jpg new file mode 100644 index 0000000..f6214e8 Binary files /dev/null and b/content/images/IMG_7498.jpg differ diff --git a/content/images/IMG_7499.jpg b/content/images/IMG_7499.jpg new file mode 100644 index 0000000..dc3552c Binary files /dev/null and b/content/images/IMG_7499.jpg differ diff --git a/content/images/IMG_7500.jpg b/content/images/IMG_7500.jpg new file mode 100644 index 0000000..93db279 Binary files /dev/null and b/content/images/IMG_7500.jpg differ diff --git a/content/images/IMG_7501.jpg b/content/images/IMG_7501.jpg new file mode 100644 index 0000000..a4fa24a Binary files /dev/null and b/content/images/IMG_7501.jpg differ diff --git a/content/images/IMG_7502.jpg b/content/images/IMG_7502.jpg new file mode 100644 index 0000000..4011529 Binary files /dev/null and b/content/images/IMG_7502.jpg differ diff --git a/content/images/IMG_7503.jpg b/content/images/IMG_7503.jpg new file mode 100644 index 0000000..5f42104 Binary files /dev/null and b/content/images/IMG_7503.jpg differ diff --git a/content/images/IMG_7508.jpg b/content/images/IMG_7508.jpg new file mode 100644 index 0000000..7d3dcf4 Binary files /dev/null and b/content/images/IMG_7508.jpg differ diff --git a/content/images/IMG_7511.jpg b/content/images/IMG_7511.jpg new file mode 100644 index 0000000..aebf19d Binary files /dev/null and b/content/images/IMG_7511.jpg differ diff --git a/content/images/IMG_7512.jpg b/content/images/IMG_7512.jpg new file mode 100644 index 0000000..010d40b Binary files /dev/null and b/content/images/IMG_7512.jpg differ diff --git a/content/images/index.md b/content/images/index.md new file mode 100644 index 0000000..b128c0a --- /dev/null +++ b/content/images/index.md @@ -0,0 +1,4 @@ +--- +title: The Gallery +headless: true +--- diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..804c72c --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/bep/gallerydeluxe_starter + +go 1.19 + +require github.com/bep/gallerydeluxe v0.11.1 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..9234cf6 --- /dev/null +++ b/go.sum @@ -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= diff --git a/hugo.work b/hugo.work new file mode 100644 index 0000000..9ffb3b8 --- /dev/null +++ b/hugo.work @@ -0,0 +1,4 @@ +go 1.19 + +use . +use ../gallerydeluxe diff --git a/hugo.yaml b/hugo.yaml new file mode 100644 index 0000000..934bf7b --- /dev/null +++ b/hugo.yaml @@ -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 diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..bf32c10 --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,36 @@ + + + + + {{ .Title }} + + {{ partial "gallerydeluxe/head.html" . }} + {{ partial "head.html" . }} + + + + + {{/* 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. + */}} + +
+ × + {{ if $params.enable_exif }} +
+ {{ end }} +
+ + diff --git a/layouts/partials/head.html b/layouts/partials/head.html new file mode 100644 index 0000000..612cdb2 --- /dev/null +++ b/layouts/partials/head.html @@ -0,0 +1,10 @@ + +{{ $css := resources.Get "css/styles.css" }} +{{ if hugo.IsProduction}} + {{ $css = $css | minify | fingerprint }} +{{ end }} + +{{ with site.Params.plausible_domain }} + +{{ end }} + diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html new file mode 100644 index 0000000..e69de29 diff --git a/static/favicon.svg b/static/favicon.svg new file mode 100644 index 0000000..93ca53b --- /dev/null +++ b/static/favicon.svg @@ -0,0 +1 @@ + \ No newline at end of file