steinbrueckri / steinbrueckri.io

my personal website
https://steinbrueck.io
1 stars 0 forks source link
gallery hugo personal-website

Steinbrueck.io

CI Status Netlify Status Website Status

Build

It exist two build goals build and ci, the ci goal is obviously executed in the Github actions workflow (ci.yml).

The ci goal calls the script get_gallery_images.sh this script will download the images for the gallery's from the B2 Bucket (source_bucket) specific in the gallery index.md. The script needs some environment variables to be set B2_APPLICATION_KEY_ID and B2_APPLICATION_KEY.

Example:

---
title: "Street-01-2020"
date: "2020-01-03"
summary: ""
draft: false
source_bucket: "b2://steinbrueck-io-gallery/Street-01-2020"
tags: ["Street", "BW", "Erfurt", "Ingolstadt", "Nuernberg"]
---

Screenshot

Create

Blog

hugo new --kind blog blog/Foobar-$(date +%Y-%m-%d)
# you can also use a gulp task but in this case the name will be only the date
task new-blog

Gallery

hugo new --kind gallery gallery/Street-$(date +%m-%Y)
# or if you want to set a name by our own ...
hugo new --kind gallery gallery/<NAME>
# you can also use a gulp task
task new-gallery