Mercurial > eldonilo > blog
diff server.js @ 3:2e2a2154efbb
Use a better XHTML semantic and fix the theme a bit.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 19 Sep 2011 01:46:42 -0700 |
parents | eb5b6d3ab09b |
children | f630f4b90564 |
line wrap: on
line diff
--- a/server.js +++ b/server.js @@ -317,18 +317,16 @@ var home = function(res, title, desc, bo res.write(' <header>\n'); res.write(' <h1>' + (title? title: 'Eldonilo blog') + '</h1>\n'); res.write(' <p>' + (desc? desc: 'Displaying your nodes.') + '</p>\n'); + res.write('\n'); + res.write(' <nav>\n'); + res.write(' <ul>\n'); + res.write(' <li><a href="?no=client">Without client-side</a></li>\n'); + res.write(' <li><a href="?no=server">Without server-side</a></li>\n'); + res.write(' <li><a href="?">Hybrid mode</a></li>\n'); + res.write(' </ul>\n'); + res.write(' </nav>\n'); res.write(' </header>\n'); res.write('\n'); - res.write(' <nav>\n'); - res.write(' <ul>\n'); - res.write(' <li><a href="?no=client">Without client-side</a></li>\n'); - res.write(' <li><a href="?no=server">Without server-side</a></li>\n'); - res.write(' <li><a href="?">Hybrid mode</a></li>\n'); - res.write(' </ul>\n'); - res.write(' </nav>\n'); - res.write('\n'); - res.write(' <hr/>\n'); - res.write('\n'); if (!body) res.write(' <section id="messages"/>\n');