commit 1fd1f47f97669c919a25ded1cdeb4d290990ac1c parent c9049b37bb0e0763f3c74d8fc1f78d30b3d0959d Author: Paul Longtine <paullongtine@gmail.com> Date: Thu May 22 13:25:17 2014 ajusted some things Diffstat: data/styles/style.css | 4 ++++ templates/std.html | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/data/styles/style.css b/data/styles/style.css @@ -1,4 +1,8 @@ body, div { width:900px; margin:0 auto; +} + +.current { + border:2px solid black; } \ No newline at end of file diff --git a/templates/std.html b/templates/std.html @@ -9,11 +9,14 @@ {: for i,x in pagedata.items(): l = i + if page == "":page = "index" + if str(i) == page: c = "current" + else: c = "" + if i == "index": i = "" i = "/"+i - - returns = returns + "<a href=\"{}\">{}</a> ".format(i, l) + returns = "<a class=\"{}\" href=\"{}\">{}</a> ".format(c, i, l) + returns :} <div> %content%