diff options
| author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-02-03 01:12:12 +0300 |
|---|---|---|
| committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2026-02-03 01:12:12 +0300 |
| commit | cbd503498131bcf0b3a31c5602209be703f048c9 (patch) | |
| tree | e0c1ba82ac198157cd0de2e727fadc644071bb4c /src | |
| parent | 780fcde412ca27ac7765590d3cca7f1e8b8e98b3 (diff) | |
| download | revela-cbd503498131bcf0b3a31c5602209be703f048c9.tar.gz revela-cbd503498131bcf0b3a31c5602209be703f048c9.zip | |
fix: render_make_index: albums var incorrectly set
Oopsie! Albums should be set to the albums vector, not to the years
vector.
Diffstat (limited to 'src')
| -rw-r--r-- | src/render.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |
