diff options
author | Araq <rumpf_a@web.de> | 2014-12-10 02:29:31 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-12-10 02:29:31 +0100 |
commit | 0cb3d31617f2480ca4d38cbf0a340dbb151796f1 (patch) | |
tree | 0f29e1fba61d60a92e2f1634fb0ac14ee368bc3c /tools | |
parent | 85cc5a6a1f0247f0d70f68831a19ec9cab1f5dd3 (diff) | |
download | Nim-0cb3d31617f2480ca4d38cbf0a340dbb151796f1.tar.gz |
further website improvements
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nimweb.nim | 1 | ||||
-rw-r--r-- | tools/website.tmpl | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tools/nimweb.nim b/tools/nimweb.nim index ddbba1e3f..6cd840ab6 100644 --- a/tools/nimweb.nim +++ b/tools/nimweb.nim @@ -400,6 +400,7 @@ proc main(c: var TConfigData) = for i in 0..c.tabs.len-1: var file = c.tabs[i].val let rss = if file in ["news", "index"]: extractFilename(rssUrl) else: "" + if '.' in file: continue exec(cmd % [c.nimArgs, file]) var temp = "web" / changeFileExt(file, "temp") var content: string diff --git a/tools/website.tmpl b/tools/website.tmpl index b4dd2631c..88a4dee67 100644 --- a/tools/website.tmpl +++ b/tools/website.tmpl @@ -24,10 +24,16 @@ # var t = c.tabs[i].val #if currentTab == t: <a class="active" + #elif t == "community" or t == "news": + # continue #else: <a #end if - href="${t}.html" title = "$c.projectName - $name">$name</a> + #if t.contains('.'): + href="${t}" title = "$c.projectName - $name">$name</a> + #else: + href="${t}.html" title = "$c.projectName - $name">$name</a> + #end if #end for </nav> </div> |