diff options
author | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-05-18 17:36:57 +0100 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@googlemail.com> | 2013-05-18 17:36:57 +0100 |
commit | f081ac0e540378e4743bf81d0720e50f35a69428 (patch) | |
tree | 36f55be032325ca099667ce7dd5ef5b47c20f5c1 /tools/website.tmpl | |
parent | 8fd274038ea6bbdc42e050d693563080c4cfd9f8 (diff) | |
download | Nim-f081ac0e540378e4743bf81d0720e50f35a69428.tar.gz |
Implemented new Nimrod website designed by @PhilipWitte.
Diffstat (limited to 'tools/website.tmpl')
-rw-r--r-- | tools/website.tmpl | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tools/website.tmpl b/tools/website.tmpl new file mode 100644 index 000000000..0ec659267 --- /dev/null +++ b/tools/website.tmpl @@ -0,0 +1,75 @@ +#! stdtmpl | standard +#proc generateHTMLPage(c: var TConfigData, currentTab, content: string): string = +# result = "" +<!doctype html> +<html> + +<head> + <title>$c.projectTitle</title> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" type="text/css" href="assets/style.css" /> +</head> + +<body> + <div id="site"> + <!-- site_head --> + <div id="site_head"> + <div id="logo"></div> + </div> + + <!-- site_neck --> + <div id="site_neck"> + #for i in 0.. c.tabs.len-1: + # var name = c.tabs[i].key + # var t = c.tabs[i].val + #if currentTab == t: + <a class="active" + #else: + <a + #end if + href="${t}.html" title = "$c.projectName - $name">$name</a> + #end for + </div> + + <!-- site_body --> + <div id="site_body"> + + <!-- sidebar_wrapper --> + <div id="sidebar_wrap"> + <div id="sidebar"> + <div id="sidebar_head"></div> + <h2>Latest News</h2> +# if len(c.ticker) > 0: + $c.ticker +# end if + +# if len(c.links) > 0: + <h2>More Links</h2> +# for i in 0..c.links.len-1: + <a class="link" href="${c.links[i].val}" id="${c.links[i].id}">${c.links[i].key}</a> +# end for +# end if + </div> + </div> + <!-- page --> + <div id="page"> + #if c.quotations.hasKey(currentTab): + <div class="quote-image"></div> + <p class="quote"> + ${c.quotations[currentTab].quote} + <br> + <b style="float: right">-- ${c.quotations[currentTab].author}</b> + </p> + <br/> + #end if + + $content + </div> + </div> + <!-- site_foot --> + <div id="site_foot"> + <div id="legal">Copyright © 2013 - Andreas Rumpf & Contributors - All rights reserved - <a href="http://reign-studios.com/philipwitte/">Design by Philip Witte</a></div> + </div> + </div> +</body> +</html> |