initial commit

This commit is contained in:
2024-11-13 22:26:45 +01:00
commit fd466fc511
156 changed files with 13223 additions and 0 deletions

6
themes/gallery/exampleSite/.gitignore vendored Normal file
View File

@@ -0,0 +1,6 @@
node_modules/
public/
resources/
.hugo_build.lock
hugo_stats.json
content/**/*.jpg

View File

@@ -0,0 +1,11 @@
# Example site for hugo-theme-gallery
## Installation
```
# Install Hugo module
hugo mod get
# Pull example images from Unsplash
./pull-images.sh
```

View File

@@ -0,0 +1,10 @@
:root {
--surface-1-light: #ffffff;
--surface-2-light: #f0f0f0; /* gray-3 */
--text-1-light: #202020; /* gray-12 */
--text-2-light: #646464; /* gray-11 */
--surface-1-dark: #111111; /* gray-1-dark */
--surface-2-dark: #222222; /* gray-3-dark */
--text-1-dark: #eeeeee; /* gray-12-dark */
--text-2-dark: #b4b4b4; /* gray-11-dark */
}

View File

@@ -0,0 +1,58 @@
copyright = "© Your Name"
defaultContentLanguage = "en"
disableKinds = ["taxonomy"]
enableRobotsTXT = true
languageCode = "en"
timeZone = "Europe/Berlin"
timeout = "120s"
title = "Gallery"
[params]
defaultTheme = "dark"
description = "Example site for hugo-theme-gallery"
title = "My Gallery"
[params.author]
email = "user@example.com"
name = "Your Name"
[params.socialIcons]
facebook = "https://www.facebook.com/"
instagram = "https://www.instagram.com/"
github = "https://github.com/nicokaiser/hugo-theme-gallery/"
youtube = "https://www.youtube.com/"
email = "mailto:user@example.com"
#website = "https://example.com"
#mastodon = "https://example.com"
#pixelfed = "https://example.com"
[params.gallery]
#boxSpacing = 10
#targetRowHeight = 288
#targetRowHeightTolerance = 0.25
[outputs]
home = ["HTML", "RSS"]
page = ["HTML"]
section = ["HTML"]
[imaging]
quality = 75
resampleFilter = "CatmullRom"
[imaging.exif]
disableDate = false
disableLatLong = true
includeFields = "ImageDescription|Orientation"
[module]
[module.hugoVersion]
min = "0.121.2"
[[module.imports]]
path = "github.com/nicokaiser/hugo-theme-gallery/v4"
[menu]
[[menu.footer]]
name = "GitHub"
url = "https://github.com/nicokaiser/hugo-theme-gallery/"
weight = 3
[services]
[services.rss]
limit = 100

View File

@@ -0,0 +1,12 @@
---
description: An example site for hugo-theme-gallery. Images from Unsplash.
#lastmod: 2023-07-05
title: Hugo Gallery
featured_image: martin-martz-wRuhOOaG-Z4-unsplash.jpg # default: first image in this directory
# featured_image on the home page is used for OpenGraph cards, etc.
menus:
main:
name: Home
weight: -1
# sub-galleries on list pages are sorted by date and weight (descending)
---

View File

@@ -0,0 +1,10 @@
---
layout: page
rss_ignore: true
title: About
menu:
main:
weight: 90
---
This is a demonstration site for the Hugo Gallery theme.

View File

@@ -0,0 +1,9 @@
---
description: This is the "Animals" album. It has two sub-albums.
featured_image: janis-ringli-UC1pzyJFyvs-unsplash.jpg
keywords: [Animals, Photos, Cats, Dogs]
title: Animals
weight: 1
menus: "main"
# list pages require at least one image to be displayed.
---

View File

@@ -0,0 +1,17 @@
---
date: 2023-04-01
featured_image: manja-vitolic-gKXKBY-C-Dk-unsplash.jpg
title: Cats
#type: gallery
sort_by: Name
categories: ["animals", "nature"]
resources:
- src: alexander-london-mJaD10XeD7w-unsplash.jpg
title: Brown tabby cat on white stairs by Alexander London
- src: amber-kipp-75715CVEJhI-unsplash.jpg
title: Selective focus photography of orange and white cat on brown table by Amber Kipp
- src: manja-vitolic-gKXKBY-C-Dk-unsplash.jpg
title: "Gipsy the Cat was sitting on a bookshelf one afternoon and just stared right at me, kinda saying: “Will you take a picture already?”"
- src: michael-sum-LEpfefQf4rU-unsplash.jpg
title: This is the cutest and loveliest cat I have ever met in my life. He is BU BU, a cat with 6 fingers, which is unusual, but in fact, smarter than any cat. He meows every time he sees me, and jumps to my bed and sits with me.
---

View File

@@ -0,0 +1,7 @@
---
date: 2023-01-12
featured_image: milli-2l0CWTpcChI-unsplash.jpg
title: Dogs
categories: ["animals", "nature"]
#type: gallery
---

View File

@@ -0,0 +1,4 @@
---
title: Animals
description: Categories can also have custom titles and descriptions. The description of the Animals category lives in `content/categories/animals/_index.md`.
---

View File

@@ -0,0 +1,11 @@
---
description: Fashion and Beauty are a powerful form of self-expression. This category documents style through inspiring shots of street fashion, skincare products, avant-garde editorial photographs, and more.
menus: "main"
title: Fashion & Beauty
#type: gallery
weight: 2
featured_image: mina-rad-V94CguEmeos-unsplash.jpg
categories: ["beauty", "fashion"]
params:
theme: light
---

View File

@@ -0,0 +1,8 @@
---
date: 2023-01-12
featured_image: milli-2l0CWTpcChI-unsplash.jpg
title: Featured Album
featured: true
private: true # do not show in list, only as feature
description: This is a featured album. It is private, so it is only shown on the homepage.
---

View File

@@ -0,0 +1,10 @@
---
title: Imprint
rss_ignore: true
layout: page
menu:
footer:
weight: 1
---
(Put your imprint here)

View File

@@ -0,0 +1,13 @@
---
description: Through photography, the beauty of Mother Nature can be frozen in time. This category celebrates the magic of our planet and beyond — from the immensity of the great outdoors, to miraculous moments in your own backyard.
featured_image: azzedine-rouichi-ZS_XuDZmxpM-unsplash.jpg
menus: "main"
sort_by: Name # Exif.Date
sort_order: desc
title: Nature
#type: gallery
categories: ["nature"]
weight: 3
params:
theme: dark
---

View File

@@ -0,0 +1,6 @@
---
description: A private gallery that is only available by direct link.
private: true # This gallery does not show in lists, RSS, sitemaps, etc. On list pages, use cascade to hide descendants.
title: Private
#type: gallery
---

View File

@@ -0,0 +1,7 @@
module github.com/nicokaiser/hugo-gallery-starter
go 1.20
require github.com/nicokaiser/hugo-theme-gallery/v4 v4.0.0 // indirect
replace github.com/nicokaiser/hugo-theme-gallery/v4 => ../

View File

@@ -0,0 +1 @@
<!-- Custom <head> tags (e.g. analytics code) -->

View File

@@ -0,0 +1,7 @@
{
"private": "true",
"scripts": {
"build": "hugo --gc --minify",
"dev": "hugo server"
}
}

View File

@@ -0,0 +1,57 @@
#!/bin/bash
# Home
wget --no-clobber --content-disposition --directory-prefix=content "https://unsplash.com/photos/wRuhOOaG-Z4/download?&force=true&w=1920"
# Animals
wget --no-clobber --content-disposition --directory-prefix=content/animals "https://unsplash.com/photos/UC1pzyJFyvs/download?&force=true&w=1920"
# Animals/Cats
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/gKXKBY-C-Dk/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/75715CVEJhI/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/mJaD10XeD7w/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/CEx86maLUSc/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/yMSecCHsIBc/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/rW-I87aPY5Y/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/p6yH8VmGqxo/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/LEpfefQf4rU/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/cats "https://unsplash.com/photos/nKC772R_qog/download?&force=true&w=1920"
exiftool -ImageDescription="Brown tabby cat on white stairs by Alexander London" content/animals/cats/alexander-london-mJaD10XeD7w-unsplash.jpg
exiftool -ImageDescription="selective focus photography of orange and white cat on brown table by Amber Kipp" content/animals/cats/amber-kipp-75715CVEJhI-unsplash.jpg
# Animals/Dogs
wget --no-clobber --content-disposition --directory-prefix=content/animals/dogs "https://unsplash.com/photos/Sg3XwuEpybU/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/dogs "https://unsplash.com/photos/Mv9hjnEUHR4/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/dogs "https://unsplash.com/photos/2l0CWTpcChI/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/animals/dogs "https://unsplash.com/photos/WX4i1Jq_o0Y/download?&force=true&w=1920"
# Fashion & Beauty
wget --no-clobber --content-disposition --directory-prefix=content/fashion-beauty "https://unsplash.com/photos/FkxXePJJH5g/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/fashion-beauty "https://unsplash.com/photos/63obHScZWZw/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/fashion-beauty "https://unsplash.com/photos/7gqnlnCTvlg/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/fashion-beauty "https://unsplash.com/photos/V94CguEmeos/download?&force=true&w=1920"
# Nature
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/ZS_XuDZmxpM/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/U7BG3FOT5r8/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/TUzsO59UFpo/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/P45gR9kH0SM/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/k_PbdrEs79g/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/4f8u5mFGKjw/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/f_C_lFxqThI/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/x7CyIC2jUaE/download?&force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/nature "https://unsplash.com/photos/RuaRTaKi-D4/download?force=true&w=1920"
# Private
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/gRknIewfaBs/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/QQ0naV2n-mg/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/_lQgFjsTgEs/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/7pYqHNp37Pg/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/6dH1__uRYtg/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/private "https://unsplash.com/photos/t2WImwH1Fa0/download?force=true&w=1920"
# Featured
wget --no-clobber --content-disposition --directory-prefix=content/featured-album "https://unsplash.com/photos/fcwZsjyqp0s/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/featured-album "https://unsplash.com/photos/IFlBNNOLHUo/download?force=true&w=1920"
wget --no-clobber --content-disposition --directory-prefix=content/featured-album "https://unsplash.com/photos/pjszS6Q2g_Y/download?force=true&w=1920"