From 543c9133e2bdea703067c1a394dfc6e989482cc7 Mon Sep 17 00:00:00 2001 From: Jacob Parker Date: Tue, 21 Feb 2012 14:52:58 -0500 Subject: [PATCH] dweb 0.3: can wrap the site in a container now. --- pub/style/style.css | 8 ++++++++ src/config.d | 5 +++-- src/web.d | 4 +++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pub/style/style.css b/pub/style/style.css index a0b7517..e0e60f7 100644 --- a/pub/style/style.css +++ b/pub/style/style.css @@ -12,6 +12,13 @@ body { padding: 0; } +#container { + position: relative; + margin: 20px auto; + width: 900px; + text-align: left; +} + /* # Header # */ .superHeader { color: white; @@ -220,6 +227,7 @@ li ul { background-color: transparent; text-align: justify; line-height: 1.5em; + word-wrap: break-word; } .main-copy-side-bar { diff --git a/src/config.d b/src/config.d index 8763cc2..f6813c3 100644 --- a/src/config.d +++ b/src/config.d @@ -5,5 +5,6 @@ const string site_root = dweb_root ~ "srv/"; 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 = false; +const bool nav_tree_vert = true; +const bool nav_tree_chev = true; +const bool page_container = false; diff --git a/src/web.d b/src/web.d index 3616241..7e17553 100755 --- a/src/web.d +++ b/src/web.d @@ -187,11 +187,13 @@ void main(string[] args) { html(""); html_pop("\n"); - html_push(""); + html_push(""); + if (page_container) html_push("
"); do_header(); do_nav_tree(path); do_content(path); do_footer(); + if (page_container) html_push("
"); html_pop("\n"); html_pop("");