diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2021-12-16 02:04:43 +0300 |
commit | 9297781c79dbfe68a817474d0395001fd9746770 (patch) | |
tree | a1ef30b48f1c1c453ba37f9a2126fa58550f4b29 /src | |
parent | 0e2f57884b494aa676686db132994a3df2b73c70 (diff) | |
download | revela-9297781c79dbfe68a817474d0395001fd9746770.tar.gz revela-9297781c79dbfe68a817474d0395001fd9746770.zip |
Added basic builtin templates and css
Diffstat (limited to 'src')
-rw-r--r-- | src/render.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/render.c b/src/render.c index 7008e50..17436f8 100644 --- a/src/render.c +++ b/src/render.c @@ -227,11 +227,7 @@ render_init(struct render *r, const char *root, struct site_config *conf, r->common_vars = hashmap_new_with_cap(16); hashmap_insert(r->common_vars, "title", conf->title); - if (strlen(conf->base_url) == 0) { - hashmap_insert(r->common_vars, "index", "/"); - } else { - hashmap_insert(r->common_vars, "index", conf->base_url); - } + hashmap_insert(r->common_vars, "index", conf->base_url); //bstree_inorder_walk(albums->root, albums_walk, (void *)r); |