diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-01-26 22:43:29 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2023-01-26 22:43:29 +0300 |
commit | 43d153c00bb067276d3cda141ad62de27cb4971d (patch) | |
tree | bc878c5a9a306d1ce9aba8adc5a8eb000d2afa23 /include/render.h | |
parent | efd8f03262f5cfeedbf2bef0f05636088b39d679 (diff) | |
download | revela-0.1.3.tar.gz revela-0.1.3.zip |
Cleanup & fix new album images not being renderedv0.1.3
* Cleaned up some code and formatted with clang-format
* Fix the result of what can only be explained as me having a
brain-fart^1 leading me to write returns where they shouldn't be hence
the image-walk loop returning early when new images were added to an
album.
* Also cleaned up and fixed a bug in roscha; more in roscha's own repo.
1: https://www.youtube.com/watch?v=UN7SBXJj2pc
Diffstat (limited to 'include/render.h')
-rw-r--r-- | include/render.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/render.h b/include/render.h index 24c931a..72c3cd2 100644 --- a/include/render.h +++ b/include/render.h @@ -24,7 +24,7 @@ struct index_template { struct roscha_object *years; }; -/* +/* * Variables for the album template and album elements in the albums vector of * the index template. */ @@ -77,15 +77,15 @@ struct render { bool render_make_index(struct render *, const char *path); bool render_make_album(struct render *r, const char *path, - const struct album *album); + const struct album *album); bool render_make_image(struct render *r, const char *path, - const struct image *image); + const struct image *image); bool render_set_album_vars(struct render *, struct album *); bool render_init(struct render *, const char *path, struct site_config *, - struct vector *albums); + struct vector *albums); void render_deinit(struct render *); |