Made template prettier
Also more formatting for the output. This is now actually usable.master
parent
f5534b62ff
commit
99d20cf1f6
@ -1,7 +1,43 @@
|
||||
<html>
|
||||
<body style="background-color: #333; color: #ccc;">
|
||||
<div id="content" style="width: 70%; margin: auto; padding-top: 10%;">
|
||||
{{.Author}} said: {{.Content}}
|
||||
<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}}] <{{$p.Author}}>
|
||||
</td>
|
||||
<td>
|
||||
{{$p.Content}}
|
||||
</td>
|
||||
</tr>
|
||||
{{- end}}
|
||||
<table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in new issue