Source code and raw markdown content of my blog site https://blog.yanlincs.com/
Find a file
2026-02-07 10:35:36 +01:00
content introduce figcaption 2026-02-06 09:11:05 +01:00
dev-runtime move runtime location 2026-02-04 12:23:51 +01:00
sass minor style adjustment 2026-02-07 10:35:36 +01:00
static remove github page deployment 2026-02-02 10:30:30 +01:00
templates introduce figcaption 2026-02-06 09:11:05 +01:00
.envrc move runtime location 2026-02-04 12:23:51 +01:00
.gitignore init commit 2026-01-30 16:19:41 +01:00
config.toml draft dl4traj/large-model post 2026-02-05 14:38:21 +01:00
LICENSE add license 2026-01-31 07:38:02 +01:00
README.md minor style adjustment 2026-02-07 10:35:36 +01:00

Project Structure

  • config.toml: site config (base_url, title, markdown settings)
  • content/: blog posts organized by category (ml-tech, homelab, ai-system, dl4traj)
  • templates/: Zola templates + shortcodes
  • sass/style.scss: styles with light/dark mode via CSS variables
  • static/: favicons, web manifest
  • public/: built output

Shortcodes

Image with max-width constraint. width defaults to 500px:

{{ img(src="./diagram.png", alt="Architecture", width="600px") }}

Figure caption:

{% cap() %}The *architecture* diagram{% end %}

Block math:

{% math() %}
\nabla \cdot \mathbf{E} = \frac{\rho}{\epsilon_0}
{% end %}

Inline math:

The loss {% m() %}\mathcal{L}{% end %} is minimized.

Inserts table of contents where placed:

{{ toc() }}

Cloudflare Pages Deployment

To use a specific version of Zola, and to handle Cloudflare's distinction between preview and production builds:

curl -sL https://github.com/getzola/zola/releases/download/v0.22.1/zola-v0.22.1-x86_64-unknown-linux-gnu.tar.gz | tar xz && if [ "$CF_PAGES_BRANCH" = "main" ]; then ./zola build; else ./zola build --base-url $CF_PAGES_URL; fi