Permalink
Browse files

Added site configurations to the config file. Site name, logo, links …

…etc.
  • Loading branch information...
1 parent 416c94d commit a3cf617bd6edb60a4d53fe481ec80be801e19fc8 @cubehouse cubehouse committed Apr 13, 2012
Showing with 21 additions and 5 deletions.
  1. +3 −0 app.js
  2. +13 −0 config_example.js
  3. +5 −5 views/index.jade
View
3 app.js
@@ -48,6 +48,9 @@ function renderWithRecent(type, res, o, callback) {
recent.moment = moment;
o.recent = recent;
+ o.sitename = config.sitename;
+ o.links = config.links;
+ o.logo = config.logo;
res.render(type, o);
if (callback) callback(o);
View
@@ -1 +1,14 @@
exports.port = 80;
+exports.sitename = "0x10co.de";
+exports.links = [
+ {
+ title: "0x10c Forum",
+ url: "http://www.0x10cforum.com/"
+ },
+ {
+ title: "0x10c Wiki",
+ url: "http://0x10cwiki.com/"
+ }
+];
+// best to have an image of 38px height
+exports.logo = "img/logo.png";
View
@@ -1,9 +1,9 @@
doctype 5
html(lang='en')
head
- title 0x10co.de -
+ title= sitename
block title
- | The easy DCPU-16 sharer
+ | - The easy DCPU-16 sharer
meta(name="viewport", content="width=device-width, initial-scale=1.0")
link(href="/bootstrap/css/bootstrap.css", rel="stylesheet")
link(href="/bootstrap/css/bootstrap-responsive.css", rel="stylesheet")
@@ -14,7 +14,7 @@ html(lang='en')
div.navbar-inner
div.container-fluid
a.brand(href="/")
- img(src="/img/logo.png")
+ img(src=logo)
div.nav-collapse.collapse
ul.nav
pages = {'new':'New Program', 'top':'Top Programs', 'random':'Random', 'io':'I/O Spec'}
@@ -30,8 +30,8 @@ html(lang='en')
div.span3
block sidebar
ul
- li: a(href="http://www.0x10cforum.com/") 0x10c Forum
- li: a(href="http://0x10cwiki.com") 0x10c Wiki
+ each link in links
+ li: a(href=link.url)= link.title
div.accordion-group
div.accordion-heading
a.accordion-toggle(data-toggle="collapse", data-target="#reference") DCPU16 Quick Reference

0 comments on commit a3cf617

Please sign in to comment.