diff --git a/public/css/style.css b/public/css/style.css index 0e06370..4850986 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -4,7 +4,7 @@ h1, h2 { font-family: monospace; margin: 0; } h1 { border-bottom: 2px solid #eee; } h2 { font-size: 1.2em; } -.page { margin: 2em auto; width: 35em; border: 5px solid #ccc; +.page { margin: 2em auto; width: 38em; border: 5px solid #ccc; padding: 0.8em; background: white; } .entries { list-style: none; margin: 0; padding: 0; } .entries li { margin: 0.8em 1.2em; } diff --git a/src/templates/layout.mustache b/src/templates/layout.mustache index 2441815..89faa5a 100644 --- a/src/templates/layout.mustache +++ b/src/templates/layout.mustache @@ -16,5 +16,5 @@
-
made by xena source code
+
made by xena source code changelog
diff --git a/src/twtxtlist.nim b/src/twtxtlist.nim index 49deea1..ed39e68 100644 --- a/src/twtxtlist.nim +++ b/src/twtxtlist.nim @@ -57,6 +57,14 @@ routes: get "/": renderMustache("home", indexTemplate, newContext()) + get "/changelog": + const log = staticExec "git log -10" + var ctx = newContext() + + ctx["changelog"] = log + + renderMustache("changelog", changelogTemplate, ctx) + get "/content/system": let myHeaders = {