aboutsummaryrefslogtreecommitdiff
path: root/include/config.h
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-01-26 22:43:29 +0300
commit43d153c00bb067276d3cda141ad62de27cb4971d (patch)
treebc878c5a9a306d1ce9aba8adc5a8eb000d2afa23 /include/config.h
parentefd8f03262f5cfeedbf2bef0f05636088b39d679 (diff)
downloadrevela-43d153c00bb067276d3cda141ad62de27cb4971d.tar.gz
revela-43d153c00bb067276d3cda141ad62de27cb4971d.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/config.h')
-rw-r--r--include/config.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/config.h b/include/config.h
index 085eb5e..3ba1cf7 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4,21 +4,21 @@
#include <stdint.h>
#include <sys/types.h>
-#define SITE_CONF "site.ini"
+#define SITE_CONF "site.ini"
#define ALBUM_CONF "album.ini"
struct image_config {
- bool strip;
+ bool strip;
uint8_t quality;
- size_t max_width;
- size_t max_height;
- bool smart_resize;
- double blur;
+ size_t max_width;
+ size_t max_height;
+ bool smart_resize;
+ double blur;
};
struct site_config {
- char *title;
- char *base_url;
+ char *title;
+ char *base_url;
struct image_config images;
struct image_config thumbnails;
};