From bb457c2fc3bb7521791b1d03c644416727d47e55 Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Fri, 24 Feb 2012 16:39:01 -0500 Subject: [PATCH] removed chevrons and optionality of container, those things are better managed by css --- src/config.d.sample | 2 -- src/web.d | 9 ++++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/config.d.sample b/src/config.d.sample index 366f0aa..e61dd74 100644 --- a/src/config.d.sample +++ b/src/config.d.sample @@ -4,8 +4,6 @@ const string site_title = "This is a Title"; const string site_subtitle = "but this is a subtitle"; const bool nav_tree_vert = false; -const bool nav_tree_chev = true; -const bool page_container = true; string[string] handlers; diff --git a/src/web.d b/src/web.d index 814cb3f..a52f1e9 100755 --- a/src/web.d +++ b/src/web.d @@ -11,10 +11,9 @@ void html_push(string s) { html(s); indent ~= " "; } void write_link(string to, bool expand) { bool isdir = dirExists(dweb_root ~ "/srv/" ~ to[url_root.length..$]); - string flair = nav_tree_chev? (expand? "» " : "› ") : ""; html_push(""); html("" - ~ flair ~ baseName(to) ~ (isdir ? "/" : "") ~ ""); + ~ baseName(to) ~ (isdir ? "/" : "") ~ ""); html_pop(""); } @@ -160,13 +159,13 @@ void main(string[] args) { html(""); html_pop("\n"); - html_push(""); - if (page_container) html_push("
"); + html_push(""); + html_push("
"); do_header(); do_nav_tree(url); do_content(url); do_footer(); - if (page_container) html_pop("
"); + html_pop("
"); html_pop("\n"); html_pop("");