implement the changelog

This commit is contained in:
Christine Dodrill 2016-02-07 19:16:33 -08:00
parent 87f1cfe1b1
commit 9f88e85d7c
3 changed files with 10 additions and 2 deletions

View File

@ -4,7 +4,7 @@ h1, h2 { font-family: monospace; margin: 0; }
h1 { border-bottom: 2px solid #eee; } h1 { border-bottom: 2px solid #eee; }
h2 { font-size: 1.2em; } 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; } padding: 0.8em; background: white; }
.entries { list-style: none; margin: 0; padding: 0; } .entries { list-style: none; margin: 0; padding: 0; }
.entries li { margin: 0.8em 1.2em; } .entries li { margin: 0.8em 1.2em; }

View File

@ -16,5 +16,5 @@
<br /> <br />
<center><small>made by <a href="https://git.xeserv.us/xena">xena</a> <a href="https://git.xeserv.us/xena/twtxtlist">source code</a></small></center> <center><small>made by <a href="https://git.xeserv.us/xena">xena</a> <a href="https://git.xeserv.us/xena/twtxtlist">source code</a> <a href="/changelog">changelog</a></small></center>
</div> </div>

View File

@ -57,6 +57,14 @@ routes:
get "/": get "/":
renderMustache("home", indexTemplate, newContext()) 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": get "/content/system":
let let
myHeaders = { myHeaders = {