implement the changelog
This commit is contained in:
parent
87f1cfe1b1
commit
9f88e85d7c
|
@ -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; }
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue