You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Jack Henschel 01b2e641e8
ci/woodpecker/push/woodpecker Pipeline was successful Details
Allow mobile clients to zoom on pages
2 weeks ago
content Post: Route des Grandes Alpes 2023 2 weeks ago
layouts Post: Route des Grandes Alpes 2023 2 weeks ago
static Add functionality to show map with GPX tracks in posts. 2 years ago
themes/vienna Allow mobile clients to zoom on pages 2 weeks ago
.gitattributes Set .gitattributes file with sane defaults 2 years ago
.gitignore Initial commit 7 years ago
.gitmodules Remove vienna theme submodule 6 years ago
.woodpecker.yml Fix Hugo GitInfo in CI 2 weeks ago
README.md Update CI link in README 7 months ago
config.toml Enable Hugo feature to extract last modification date from Git 7 months ago
sections.txt Add helper for scripts for developement and deployment 7 years ago
shipit.sh Update shipit.sh script 11 months ago
spellcheck.sh Add script for updating the repo 7 years ago
tags.sh Add script for fetching unique tags 10 months ago
testit.sh Enable Hugo feature to extract last modification date from Git 7 months ago
update.sh Add script for updating the repo 7 years ago

README.md

Jack's Blog

Build Status

Versioned by Gitea, Built by Woodpecker, Rendered by Hugo, Stored in Minio, Cached by Nginx, Served by Traefik.

Building

Simply run $ hugo in the main directory (this will create a public/ folder with the web files)

Alternatively, use the Docker Image jacksgt/hugo (https://github.com/jacksgt/docker-hugo) which is used by the CI/CD server to render the blog.

The CI/CD server will run a build on each push, but only publish the artifacts of the master branch. To skip a CI build (i.e. not run an integration test for this specific commit, e.g. because I doesn't modify any content), use [CI SKIP] in the commit message.

Images

Command for compressing and optimizing header background image (from https://dev.to/feldroy/til-strategies-for-compressing-jpg-files-with-imagemagick-5fn9):

convert orig.jpg \
-resize 50% \
-sampling-factor 4:2:0 \
-strip \
-quality 90 \
-interlace JPEG \
-colorspace RGB \
compressed.jpg

Create JPG thumbnail ("poster") for video (from https://stackoverflow.com/a/68705261):

ffmpeg -ss 00:01:00 -i $video -vf 'scale=1280:720' -vframes 1 ${video}.jpg

Videos

Trim / cut video from start timestamp (ss) to timestamp (to) (from https://stackoverflow.com/a/42827058):

ffmpeg -ss 00:01:00 -to 00:02:00 -i input.mp4 -c copy output.mp4