commit 5fd3bb31d90889b4510be8b23f9f2faaad3dcc79 Author: Tien <39063457+tiennm99@users.noreply.github.com> Date: Tue May 30 01:07:46 2023 +0700 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/README.md b/README.md new file mode 100644 index 0000000..1b40f40 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +[](https://app.netlify.com/sites/gallerydeluxe/deploys) + +This is a starter project for the [Gallery Deluxe](https://github.com/bep/gallerydeluxe) Hugo Module. You need [Hugo](https://gohugo.io/getting-started/installing/) and [Go](https://go.dev/dl/) to run this project. + +1. Click on use "Use this template" and give your new GitHub project a suitable name. +1. Edit `go.mod` and replace the path with your new GitHub project's path[^1]. +1. Edit `config.toml` etc. to match your setup and replace the images inside `content/images` with your own. +1. Add your custom logo in [layouts/partials/logo.html](layouts/partials/logo.html) + +This starter projects can be previewd at [gallerydeluxe.netlify.app](https://gallerydeluxe.netlify.app/). A bigger gallery can be found at [staticbattery.com](https://staticbattery.com/). + +**Note:** This isn't a _theme_; it's meant to be used as a standalone Hugo project. You can edit/add/move files in this project as you please. + +## Update theme + +Run `hugo mod get -u` to update to a newer version of Gallery Deluxe if one exists. + +[^1]: I wish GitHub's template project feature had support for variable replacements. 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/config.toml b/config.toml new file mode 100644 index 0000000..15a4c74 --- /dev/null +++ b/config.toml @@ -0,0 +1,54 @@ +baseURL = "https://www.example.com/" +title = "Gallery Deluxe" +disableKinds = ["section", "taxonomy", "term"] + +[params] + # Set to enable Plausible Analytics. + plausible_domain = "" + + [params.gallerydeluxe] + # Shuffle the images in the gallery to give the impression of a new gallery each page load. + shuffle = false + + # Reverse the order of the images in the gallery. + reverse = true + + # Enable Exif data in the gallery. + # See https://gohugo.io/content-management/image-processing/#exif-data for how to filter tags. + enable_exif = true + +[caches] + [caches.images] + dir = ':cacheDir/gallerydeluxe' + maxAge = "4320h" # 6 months. + +[imaging] + resampleFilter = "CatmullRom" + quality = 71 + anchor = "smart" + [imaging.exif] + disableDate = false + disableLatLong = true + includeFields = 'Artist|LensModel|FNumber|ExposureTime' + +[server] + [[server.headers]] + for = '/**' + [server.headers.values] + Referrer-Policy = 'strict-origin-when-cross-origin' + +[module] + [[module.mounts]] + source = "assets" + target = "assets" + [[module.mounts]] + source = "layouts" + target = "layouts" + [[module.mounts]] + source = "content" + target = "content" + [[module.mounts]] + source = "static" + target = "static" + [[module.imports]] + path = "github.com/bep/gallerydeluxe" diff --git a/content/images/20220430_13_26_34.jpg b/content/images/20220430_13_26_34.jpg new file mode 100644 index 0000000..edcca59 Binary files /dev/null and b/content/images/20220430_13_26_34.jpg differ diff --git a/content/images/20220430_13_26_53.jpg b/content/images/20220430_13_26_53.jpg new file mode 100644 index 0000000..5bc670f Binary files /dev/null and b/content/images/20220430_13_26_53.jpg differ diff --git a/content/images/20220430_13_27_19.jpg b/content/images/20220430_13_27_19.jpg new file mode 100644 index 0000000..6a8e6de Binary files /dev/null and b/content/images/20220430_13_27_19.jpg differ diff --git a/content/images/20220430_13_28_29.jpg b/content/images/20220430_13_28_29.jpg new file mode 100644 index 0000000..b9da90f Binary files /dev/null and b/content/images/20220430_13_28_29.jpg differ diff --git a/content/images/20220430_13_28_56.jpg b/content/images/20220430_13_28_56.jpg new file mode 100644 index 0000000..34a70b4 Binary files /dev/null and b/content/images/20220430_13_28_56.jpg differ diff --git a/content/images/20220430_13_29_09.jpg b/content/images/20220430_13_29_09.jpg new file mode 100644 index 0000000..d552d13 Binary files /dev/null and b/content/images/20220430_13_29_09.jpg differ diff --git a/content/images/20220430_13_29_34.jpg b/content/images/20220430_13_29_34.jpg new file mode 100644 index 0000000..1ea737d Binary files /dev/null and b/content/images/20220430_13_29_34.jpg differ diff --git a/content/images/20220430_13_30_35.jpg b/content/images/20220430_13_30_35.jpg new file mode 100644 index 0000000..c9bbe3c Binary files /dev/null and b/content/images/20220430_13_30_35.jpg differ diff --git a/content/images/20220430_13_30_37.jpg b/content/images/20220430_13_30_37.jpg new file mode 100644 index 0000000..5199448 Binary files /dev/null and b/content/images/20220430_13_30_37.jpg differ diff --git a/content/images/20220430_13_31_34.jpg b/content/images/20220430_13_31_34.jpg new file mode 100644 index 0000000..0caa13a Binary files /dev/null and b/content/images/20220430_13_31_34.jpg differ diff --git a/content/images/20220430_13_31_58.jpg b/content/images/20220430_13_31_58.jpg new file mode 100644 index 0000000..abfc341 Binary files /dev/null and b/content/images/20220430_13_31_58.jpg differ diff --git a/content/images/20220430_13_32_29.jpg b/content/images/20220430_13_32_29.jpg new file mode 100644 index 0000000..9883931 Binary files /dev/null and b/content/images/20220430_13_32_29.jpg differ diff --git a/content/images/20220430_13_33_27.jpg b/content/images/20220430_13_33_27.jpg new file mode 100644 index 0000000..58b7fb3 Binary files /dev/null and b/content/images/20220430_13_33_27.jpg differ diff --git a/content/images/20220430_13_33_54.jpg b/content/images/20220430_13_33_54.jpg new file mode 100644 index 0000000..2cc847d Binary files /dev/null and b/content/images/20220430_13_33_54.jpg differ diff --git a/content/images/20220430_13_34_55.jpg b/content/images/20220430_13_34_55.jpg new file mode 100644 index 0000000..2aeb639 Binary files /dev/null and b/content/images/20220430_13_34_55.jpg differ diff --git a/content/images/20220430_13_35_11.jpg b/content/images/20220430_13_35_11.jpg new file mode 100644 index 0000000..13733f2 Binary files /dev/null and b/content/images/20220430_13_35_11.jpg differ diff --git a/content/images/20220430_13_35_27.jpg b/content/images/20220430_13_35_27.jpg new file mode 100644 index 0000000..48c658e Binary files /dev/null and b/content/images/20220430_13_35_27.jpg differ diff --git a/content/images/20220430_13_35_33.jpg b/content/images/20220430_13_35_33.jpg new file mode 100644 index 0000000..fe42d9e Binary files /dev/null and b/content/images/20220430_13_35_33.jpg differ diff --git a/content/images/20220430_13_36_32.jpg b/content/images/20220430_13_36_32.jpg new file mode 100644 index 0000000..128ad36 Binary files /dev/null and b/content/images/20220430_13_36_32.jpg differ diff --git a/content/images/20220430_13_37_40.jpg b/content/images/20220430_13_37_40.jpg new file mode 100644 index 0000000..8659425 Binary files /dev/null and b/content/images/20220430_13_37_40.jpg differ diff --git a/content/images/20220430_13_38_13.jpg b/content/images/20220430_13_38_13.jpg new file mode 100644 index 0000000..8d907d3 Binary files /dev/null and b/content/images/20220430_13_38_13.jpg differ diff --git a/content/images/20220430_13_38_36.jpg b/content/images/20220430_13_38_36.jpg new file mode 100644 index 0000000..1498579 Binary files /dev/null and b/content/images/20220430_13_38_36.jpg differ diff --git a/content/images/20220430_13_39_00.jpg b/content/images/20220430_13_39_00.jpg new file mode 100644 index 0000000..580c922 Binary files /dev/null and b/content/images/20220430_13_39_00.jpg differ diff --git a/content/images/20220430_13_40_20.jpg b/content/images/20220430_13_40_20.jpg new file mode 100644 index 0000000..9b723d6 Binary files /dev/null and b/content/images/20220430_13_40_20.jpg differ diff --git a/content/images/20220430_13_40_53.jpg b/content/images/20220430_13_40_53.jpg new file mode 100644 index 0000000..b5adba8 Binary files /dev/null and b/content/images/20220430_13_40_53.jpg differ diff --git a/content/images/20220430_13_41_25.jpg b/content/images/20220430_13_41_25.jpg new file mode 100644 index 0000000..fb0a21c Binary files /dev/null and b/content/images/20220430_13_41_25.jpg differ diff --git a/content/images/20220430_13_42_22.jpg b/content/images/20220430_13_42_22.jpg new file mode 100644 index 0000000..46d57fa Binary files /dev/null and b/content/images/20220430_13_42_22.jpg differ diff --git a/content/images/20220430_13_43_12.jpg b/content/images/20220430_13_43_12.jpg new file mode 100644 index 0000000..ee7dab0 Binary files /dev/null and b/content/images/20220430_13_43_12.jpg differ diff --git a/content/images/20220430_13_45_01.jpg b/content/images/20220430_13_45_01.jpg new file mode 100644 index 0000000..d566cc5 Binary files /dev/null and b/content/images/20220430_13_45_01.jpg differ diff --git a/content/images/20220430_13_45_16.jpg b/content/images/20220430_13_45_16.jpg new file mode 100644 index 0000000..ac04a8e Binary files /dev/null and b/content/images/20220430_13_45_16.jpg differ diff --git a/content/images/20220430_13_46_22.jpg b/content/images/20220430_13_46_22.jpg new file mode 100644 index 0000000..27a1f84 Binary files /dev/null and b/content/images/20220430_13_46_22.jpg differ diff --git a/content/images/20220430_13_47_47.jpg b/content/images/20220430_13_47_47.jpg new file mode 100644 index 0000000..8038a3c Binary files /dev/null and b/content/images/20220430_13_47_47.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..891bdd4 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module github.com/bep/gallerydeluxe_starter + +go 1.19 + +require github.com/bep/gallerydeluxe v0.9.2 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..5af72bb --- /dev/null +++ b/go.sum @@ -0,0 +1,12 @@ +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= 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/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..1e114ae --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,32 @@ + +
+ + +