[Markdown (mostly)] This is the repo of my website https://hya.sk/
Go to file
Skia b2b7353110 Update post-receive git hook
On the new server, `zola` is installed through snap, which means it's
now sandboxed, and doesn't have direct access to the whole filesystem.
This update mostly changes a few bits so that `zola` works only on its
home, and calls `mv` at the end to change the served directory. This
also reduces the time during which the website is destroyed before being
replaced.
2024-05-07 18:10:37 +02:00
.githooks Update post-receive git hook 2024-05-07 18:10:37 +02:00
content content: add 'Archive 2024' 2024-05-07 17:27:54 +02:00
sass style: better blockquotes 2023-12-24 00:04:00 +01:00
static index: link to GPG key 2023-10-18 00:40:31 +02:00
templates template: fix tag size when tag count > 10 2023-10-18 01:29:15 +02:00
.gitignore gitignore: we don't track hugo locks 2022-06-02 19:06:17 +02:00
.gitmodules Migrate to hugo blog 2020-09-25 12:55:40 +02:00
config.toml config: fix 'archives' link 2023-03-01 15:19:18 +01:00
LICENSE.txt First commit 2015-12-21 09:17:45 +01:00
README.md content: homemade-joystick: embed gallery 2023-02-01 17:47:15 +01:00

A website that uses Zola

Development

zola serve

Generating the static site

zola build -o /path/to/generated/static/site

Including a gallery in a post

  • Use YOGA to reduce the size of the pictures (JPEG 60%, 1600px max, is far enough for the web!), and store the optimized images in path/to/opti.
  • Use fgallery -s path/to/opti ./content/.../my-post/gallery.
  • Replace the processed images as YOGA does a better job than fgallery:
    rm my-post/gallery/imgs/* && cp path/to/opti/* my-post/gallery/imgs/
  • Link it with [link to gallery](./gallery/) from the post in Markdown.