From cbd503498131bcf0b3a31c5602209be703f048c9 Mon Sep 17 00:00:00 2001 From: Yaroslav de la Peña Smirnov Date: Tue, 3 Feb 2026 01:12:12 +0300 Subject: fix: render_make_index: albums var incorrectly set Oopsie! Albums should be set to the albums vector, not to the years vector. --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.c b/src/render.c index 851c06d..dee591a 100644 --- a/src/render.c +++ b/src/render.c @@ -132,7 +132,7 @@ render_make_index(struct render *r, const char *path) if (r->dry_run) goto done; roscha_hmap_set(r->env->vars, "years", r->years); - roscha_hmap_set(r->env->vars, "albums", r->years); + roscha_hmap_set(r->env->vars, "albums", r->albums); ok = render(r->env, "index.html", path); roscha_hmap_unset(r->env->vars, "years"); roscha_hmap_unset(r->env->vars, "albums"); -- cgit v1.2.3