[Markdown (mostly)] This is the repo of my website
https://hya.sk/
Skia
b2b7353110
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. |
||
---|---|---|
.githooks | ||
content | ||
sass | ||
static | ||
templates | ||
.gitignore | ||
.gitmodules | ||
config.toml | ||
LICENSE.txt | ||
README.md |
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 thanfgallery
:
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.