diff options
Diffstat (limited to 'src/render.c')
-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); |