diff --git a/.gitea/workflows/build-and-push-image.yaml b/.gitea/workflows/build-and-push-image.yaml index b999c33..8b956de 100644 --- a/.gitea/workflows/build-and-push-image.yaml +++ b/.gitea/workflows/build-and-push-image.yaml @@ -24,7 +24,7 @@ jobs: - name: ⚙️ Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.161.1' + hugo-version: '0.164.0' extended: true - name: 🏗️ Build Hugo site diff --git a/container/site/assets/css/_custom.scss b/container/site/assets/css/_custom.scss new file mode 100644 index 0000000..1463759 --- /dev/null +++ b/container/site/assets/css/_custom.scss @@ -0,0 +1,41 @@ +.gallery-new { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 4px; + margin: 1.25rem 0; +} + +.gallery-new figure { + aspect-ratio: 1 / 1; + background: #f2f2f2; + margin: 0; + overflow: hidden; + position: relative; +} + +.gallery-new .lightgallery { + aspect-ratio: 1 / 1; + display: block; + height: 100%; + overflow: hidden; + width: 100%; +} + +.gallery-new .lightgallery img { + display: block; + height: 100% !important; + max-width: none; + object-fit: cover !important; + transition: filter 160ms ease, transform 160ms ease; + width: 100% !important; +} + +.gallery-new .lightgallery:focus-visible img, +.gallery-new .lightgallery:hover img { + filter: brightness(0.9); + transform: scale(1.03); +} + +.gallery-new figcaption { + display: none; +} diff --git a/container/site/content/posts/2024-garden/index.md b/container/site/content/posts/2024-garden/index.md index d953130..32d23c5 100644 --- a/container/site/content/posts/2024-garden/index.md +++ b/container/site/content/posts/2024-garden/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["plants"] date = 2024-04-23T13:53:30Z description = "" @@ -30,8 +30,8 @@ Each time I visited to help water and prune, I tried to remember to photograph t ## Photos ### Vegetable Garden -{{< gallerynew name="vegetable-garden-gallery" >}} +{{< gallery name="vegetable-garden-gallery" >}} ## Herb Garden -{{< gallerynew name="herb-garden-gallery" >}} +{{< gallery name="herb-garden-gallery" >}} diff --git a/container/site/content/posts/2025-12-07-mod-pizza-crust-par-bake/index.md b/container/site/content/posts/2025-12-07-mod-pizza-crust-par-bake/index.md index ef654a6..5771e55 100644 --- a/container/site/content/posts/2025-12-07-mod-pizza-crust-par-bake/index.md +++ b/container/site/content/posts/2025-12-07-mod-pizza-crust-par-bake/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2025-12-07T09:00:00Z description = "" @@ -33,4 +33,4 @@ The process is: ## Images -{{< gallerynew name="par-bake-pizza-dough-gallery" >}} \ No newline at end of file +{{< gallery name="par-bake-pizza-dough-gallery" >}} \ No newline at end of file diff --git a/container/site/content/posts/2025-12-10-cable-management/index.md b/container/site/content/posts/2025-12-10-cable-management/index.md index c2656ac..b6b8329 100644 --- a/container/site/content/posts/2025-12-10-cable-management/index.md +++ b/container/site/content/posts/2025-12-10-cable-management/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["build"] date = 2025-12-10T20:03:00-06:00 description = "" @@ -29,4 +29,4 @@ Computer desk needs tidying cables too. I attached a spare wire shelf to the und alt="View under desk" >}} ## Images -{{< gallerynew name="server-rack-gallery" >}} +{{< gallery name="server-rack-gallery" >}} diff --git a/container/site/content/posts/2025-garden/index.md b/container/site/content/posts/2025-garden/index.md index c58105f..bf0fd6b 100644 --- a/container/site/content/posts/2025-garden/index.md +++ b/container/site/content/posts/2025-garden/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["plants"] date = 2025-02-20T10:30:00-06:00 description = "" @@ -13,18 +13,18 @@ It is nearly springtime as I write the first lines of this post, so it is time t - [Vegetable](#-vegetable-garden) ## 🌰 Seeds -{{< gallerynew name="seed-gallery" >}} +{{< gallery name="seed-gallery" >}} ## 🌱 Seedlings The seeds were started in little clumps of coco coir pellets and kept beneath a LED grow light. -{{< gallerynew name="seedling-gallery" >}} +{{< gallery name="seedling-gallery" >}} ## 🌿 Herb Garden The herb garden lives outside on the deck. It will contain garlic chives and basil. They make great pizza toppings and garnishes. -{{< gallerynew name="herb-garden-gallery" >}} +{{< gallery name="herb-garden-gallery" >}} ## 🍅 Vegetable Garden -{{< gallerynew name="vegetable-garden-gallery" >}} +{{< gallery name="vegetable-garden-gallery" >}} diff --git a/container/site/content/posts/2026-07-09-herb-garden/index.md b/container/site/content/posts/2026-07-09-herb-garden/index.md index d489735..c4f69df 100644 --- a/container/site/content/posts/2026-07-09-herb-garden/index.md +++ b/container/site/content/posts/2026-07-09-herb-garden/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["plants"] date = 2026-07-09T10:00:00-05:00 description = "" @@ -25,15 +25,15 @@ Anyway, the herbs: - green onion -{{< gallerynew name="herb-gallery" >}} +{{< gallery name="herb-gallery" >}} We use basically all of these herbs in stuffed grape leaves. Basil on the pizza and spaghetti. Garnish this-and-that with green onion and chives. ## Flowers Bonus flower pot this year, assorted flowers: -{{< gallerynew name="flower-gallery" >}} +{{< gallery name="flower-gallery" >}} ## Misc -{{< gallerynew name="misc-gallery" >}} +{{< gallery name="misc-gallery" >}} diff --git a/container/site/content/posts/american-pizza/index.md b/container/site/content/posts/american-pizza/index.md index c789a9c..6069f4b 100644 --- a/container/site/content/posts/american-pizza/index.md +++ b/container/site/content/posts/american-pizza/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2024-10-16T20:27:44Z description = "" @@ -13,5 +13,5 @@ author = "nicholas" > — **Old man**, passing encounter at Sam's Club ## Photos of my Pizzas -{{< gallerynew name="american-pizza-gallery" >}} +{{< gallery name="american-pizza-gallery" >}} diff --git a/container/site/content/posts/baltimore/index.md b/container/site/content/posts/baltimore/index.md index 029582f..46b1bc5 100644 --- a/container/site/content/posts/baltimore/index.md +++ b/container/site/content/posts/baltimore/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["travel"] date = 2025-06-07T12:09:00-06:00 description = "" @@ -28,4 +28,4 @@ Bailey is enrolled in a Master's program at Johns Hopkins School of Public Healt loop="true" >}} ## Photo Gallery -{{< gallerynew name="baltimore-gallery" >}} +{{< gallery name="baltimore-gallery" >}} diff --git a/container/site/content/posts/banoffee-pie/index.md b/container/site/content/posts/banoffee-pie/index.md index ac335f7..bbc85ec 100644 --- a/container/site/content/posts/banoffee-pie/index.md +++ b/container/site/content/posts/banoffee-pie/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2025-03-01T06:27:00-06:00 description = "" @@ -10,7 +10,7 @@ author = "nicholas" We made a pumpkin caramel pie to bring for a family dinner (not pictured, strangely). Enough pie crust remained to line a shallow pizza pan, which I baked into a crust before I knew what it would become. We also had a bit of caramel leftover. After a little time considering what ingredients we had, Bailey figured we could make a decent banoffee pie. It is a beautiful accident that she had been wanting to make this after seeing it on *The Great British Bake Off*, and luckier still that we had bananas on hand. -{{< gallerynew name="banoffee-pie-gallery" >}} +{{< gallery name="banoffee-pie-gallery" >}} ## Recipe This is a lazy recipe because the food was assembled ad-hoc using leftovers of unknown measurements as is the case for many kinds of pies. I use the examples of the quiche and pie to make my point: they serve as the uniting force that brings together really any ingredient in any amount that you happen to have lying around. Details unimportant. diff --git a/container/site/content/posts/dc-nyc/index.md b/container/site/content/posts/dc-nyc/index.md index e7929ea..ce4da05 100644 --- a/container/site/content/posts/dc-nyc/index.md +++ b/container/site/content/posts/dc-nyc/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["travel"] date = 2024-12-29T00:00:00Z description = "" @@ -13,4 +13,4 @@ We went to Washington, D.C. for the [Bloomberg Public Health Summit](https://ame ## Photos -{{< gallerynew name="dcnyc" >}} \ No newline at end of file +{{< gallery name="dcnyc" >}} \ No newline at end of file diff --git a/container/site/content/posts/earl-grey-cake/index.md b/container/site/content/posts/earl-grey-cake/index.md index 71bc42a..b4e7b39 100644 --- a/container/site/content/posts/earl-grey-cake/index.md +++ b/container/site/content/posts/earl-grey-cake/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2025-01-05T00:00:00Z description = "" @@ -11,4 +11,4 @@ author = "nicholas" Bailey made a cake, and I took some photos since her creations are always very beautiful. Nothing else going on here! ## Photos -{{< gallerynew name="earl-grey-gallery" >}} \ No newline at end of file +{{< gallery name="earl-grey-gallery" >}} \ No newline at end of file diff --git a/container/site/content/posts/estes-park/index.md b/container/site/content/posts/estes-park/index.md index 8eebfb7..ddd6c84 100644 --- a/container/site/content/posts/estes-park/index.md +++ b/container/site/content/posts/estes-park/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["travel"] date = 2023-01-02T12:00:00-06:00 description = "" @@ -19,4 +19,4 @@ author = "nicholas" ## Photo Gallery -{{< gallerynew name="estes-park-gallery" >}} \ No newline at end of file +{{< gallery name="estes-park-gallery" >}} \ No newline at end of file diff --git a/container/site/content/posts/key-west/index.md b/container/site/content/posts/key-west/index.md index 3eb040c..92676da 100644 --- a/container/site/content/posts/key-west/index.md +++ b/container/site/content/posts/key-west/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["travel"] date = 2025-01-13T20:27:44Z description = "" @@ -10,4 +10,4 @@ author = "nicholas" We had our honeymoon in Key West 2025-01-13 - 2025-01-17. I did not take many photos. -{{< gallerynew name="key-west-gallery" >}} +{{< gallery name="key-west-gallery" >}} diff --git a/container/site/content/posts/mixed-berry-muffin/index.md b/container/site/content/posts/mixed-berry-muffin/index.md index 5d99b0d..0d1c5c4 100644 --- a/container/site/content/posts/mixed-berry-muffin/index.md +++ b/container/site/content/posts/mixed-berry-muffin/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2025-02-22T13:40:00-06:00 description = "" @@ -14,5 +14,5 @@ Bailey made muffins. We only have one egg left. The recipe calls for two eggs, o src="videos/timelapse-bake-mixed-berry-muffins.webm" width="100%" >}} -{{< gallerynew name="mixed-berry-muffin-gallery">}} +{{< gallery name="mixed-berry-muffin-gallery">}} diff --git a/container/site/content/posts/nas-build-pt-ii/index.md b/container/site/content/posts/nas-build-pt-ii/index.md index db2db86..35a2649 100644 --- a/container/site/content/posts/nas-build-pt-ii/index.md +++ b/container/site/content/posts/nas-build-pt-ii/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["build"] date = 2024-11-15T17:43:02Z description = "" @@ -23,4 +23,4 @@ My NAS server only has 16 GB RAM. I upgrade this to 32 GB. upgrade the OS disk a ## Upgrading In a previous log entry I documented the build process of my storage server. At the time its only intended purpose was managing my file storage and hosting a media streaming service. Its purpose has expanded to a degree that it begs for additional RAM. I will double the RAM from 16GB to 32 GB, reaching the limitations of the motherboard. I will replace the WD Blue SA510 SSD storage drive, (which will replace a very slow mechanical drive in a laptop), with a Samsung 970 EVO Plus. Old and new components will be installed in a new chassis Rosewill RSV-R4000U and rack-mounted alongside the other computer. -{{< gallerynew name="nas-build-gallery" >}} \ No newline at end of file +{{< gallery name="nas-build-gallery" >}} \ No newline at end of file diff --git a/container/site/content/posts/pacific-northwest/index.md b/container/site/content/posts/pacific-northwest/index.md index 3458e65..e9d3429 100644 --- a/container/site/content/posts/pacific-northwest/index.md +++ b/container/site/content/posts/pacific-northwest/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["travel"] date = 2023-05-31T12:00:00-05:00 description = "" @@ -22,5 +22,5 @@ Bailey and I went to PNW coast for a few days. ## Photo Gallery -{{< gallerynew name="pnw-gallery" >}} +{{< gallery name="pnw-gallery" >}} diff --git a/container/site/content/posts/pistachio-shortbread-cookie/index.md b/container/site/content/posts/pistachio-shortbread-cookie/index.md index 7ace151..4ed7def 100644 --- a/container/site/content/posts/pistachio-shortbread-cookie/index.md +++ b/container/site/content/posts/pistachio-shortbread-cookie/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] tags = ["cookie"] date = 2025-03-21T10:28:00-06:00 @@ -23,4 +23,4 @@ This is stupid easy recipe Bailey made. Note: The units for all weights are in grams. -{{< gallerynew name="pistachio-shortbread-cookie-gallery" >}} +{{< gallery name="pistachio-shortbread-cookie-gallery" >}} diff --git a/container/site/content/posts/pita/index.md b/container/site/content/posts/pita/index.md index 7c7d7d9..1c4ac2f 100644 --- a/container/site/content/posts/pita/index.md +++ b/container/site/content/posts/pita/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["food"] date = 2024-04-30T17:17:58Z description = "" @@ -14,7 +14,7 @@ This is not traditional or authentic pita I made this bread to be strong, pliabl src="videos/pita-baking-timelapse.webm" width="100%" >}} -{{< gallerynew name="pita-gallery" >}} +{{< gallery name="pita-gallery" >}} ## Process ### 1. Preheat Steel Plate diff --git a/container/site/content/posts/server-rack/index.md b/container/site/content/posts/server-rack/index.md index 5765717..dc80b9e 100644 --- a/container/site/content/posts/server-rack/index.md +++ b/container/site/content/posts/server-rack/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["build"] date = 2024-11-15T17:43:15Z description = "" @@ -43,7 +43,7 @@ I compared a lot of server racks, and most were too expensive to consider. The r ## Photos I have some photos of the rack and its components. It is tucked under the desk in the corner of the apartment living room. Very pleased. Improvements are in order for the external cable management once everything is "stable". -{{< gallerynew name="server-rack-gallery" >}} +{{< gallery name="server-rack-gallery" >}} ## "Servers" I have two chassis mounted in the rack. I have a couple of posts relating to these machines: diff --git a/container/site/content/posts/whiteboard/index.md b/container/site/content/posts/whiteboard/index.md index ac99509..70b4941 100644 --- a/container/site/content/posts/whiteboard/index.md +++ b/container/site/content/posts/whiteboard/index.md @@ -1,4 +1,4 @@ -+++ ++++ categories = ["build"] tags = [""] date = 2025-05-02T12:00:00-06:00 @@ -69,6 +69,6 @@ I will have a *Home Depot* employee to cut the board for me in the store. It wil ## Images -{{< gallerynew name="whiteboard-gallery" >}} +{{< gallery name="whiteboard-gallery" >}} Done. \ No newline at end of file diff --git a/container/site/hugo.toml b/container/site/hugo.toml index b34f375..0eb1d2e 100644 --- a/container/site/hugo.toml +++ b/container/site/hugo.toml @@ -6,7 +6,7 @@ timeout = 60000 # website title title = "log - Nicholas Ward" # language code ["en", "zh-CN", "fr", "pl", ...] -languageCode = "en" +locale = "en" # language name ["English", "简体中文", "Français", "Polski", ...] languageName = "English" # whether to include Chinese/Japanese/Korean diff --git a/container/site/layouts/shortcodes/gallerynew.html b/container/site/layouts/shortcodes/gallery.html similarity index 60% rename from container/site/layouts/shortcodes/gallerynew.html rename to container/site/layouts/shortcodes/gallery.html index 2aeba1d..5027be5 100644 --- a/container/site/layouts/shortcodes/gallerynew.html +++ b/container/site/layouts/shortcodes/gallery.html @@ -3,15 +3,22 @@ {{ $file := printf "%s.yaml" $galleryName }} {{ $galleryData := .Page.Resources.GetMatch $file | transform.Unmarshal }} -