blog/README.md

677 B

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.