diff --git a/pub/style/style.css b/pub/style/style.css index eff32b6..1c270c7 100644 --- a/pub/style/style.css +++ b/pub/style/style.css @@ -15,7 +15,7 @@ body { text-align: center; color: black; background-color: white; - font-family: Helvetica, Verdana, Arial, 'Liberation Sans', FreeSans, sans-serif; + font-family: Helvetica, Verdana, Arial, DejaVu Sans, sans-serif; font-size: 84%; /* Enables font size scaling in MSIE */ margin: 0; padding: 0; @@ -330,7 +330,7 @@ li ul { padding: 2mm 5mm 2mm 5mm; } -#main-copy p { +#main-copy p, #main-copy li { margin: 1em 1ex 1em 1ex !important; /* Need !important so troff-generated pages don't look totally squezed */ padding: 0; } diff --git a/src/config.d.sample b/src/config.d.sample new file mode 100644 index 0000000..e61dd74 --- /dev/null +++ b/src/config.d.sample @@ -0,0 +1,13 @@ +const string url_root = "/"; + +const string site_title = "This is a Title"; +const string site_subtitle = "but this is a subtitle"; + +const bool nav_tree_vert = false; + +string[string] handlers; + +void init_handlers() { + handlers["*.md"] = "contrib/Markdown.pl"; + handlers["changelog"] = "changelog.sh"; +} diff --git a/src/web.d b/src/web.d index efc7040..a2491f9 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(""); } @@ -167,13 +166,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("");