goblog/templates/overview.html
kageru 99d20cf1f6
Made template prettier
Also more formatting for the output. This is now actually usable.
2018-11-04 22:05:48 +01:00

44 lines
1002 B
HTML

<html>
<style>
body {
background-color: #333;
color: #ccc;
font-family: monospace, "Helvetica Neue", "Helvetica", "Noto Sans", sans-serif;
}
#content {
width: 70%;
margin: auto;
padding-top: 2em;
}
td.first {
width: 20%;
}
td.second {
padding-top: 0;
margin-top: 0;
top: 0;
width: 80%;
}
</style>
<body>
<div id="content">
<h2 style="text-align: center">Random Thought Dump</h2>
<table>
{{range $i, $p := $.Posts -}}
<tr>
<td>
[{{$p.FTime}}] &lt;{{$p.Author}}&gt;
</td>
<td>
{{$p.Content}}
</td>
</tr>
{{- end}}
<table>
</div>
</body>
</html>