dweb 0.3: can wrap the site in a container now.
This commit is contained in:
parent
45c0e50ab5
commit
543c9133e2
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -187,11 +187,13 @@ void main(string[] args) {
|
|||
html("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">");
|
||||
html_pop("</head>\n");
|
||||
|
||||
html_push("<body>");
|
||||
html_push("<body" ~ (page_container? " style=\"text-align: center\"" : "")~ ">");
|
||||
if (page_container) html_push("<div id=\"container\">");
|
||||
do_header();
|
||||
do_nav_tree(path);
|
||||
do_content(path);
|
||||
do_footer();
|
||||
if (page_container) html_push("</div>");
|
||||
html_pop("</body>\n");
|
||||
|
||||
html_pop("</html>");
|
||||
|
|
Loading…
Reference in New Issue