aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/style.css9
-rw-r--r--tmpl/index9
2 files changed, 16 insertions, 2 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index f3222e3..6b34512 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -42,3 +42,12 @@ header p {
font-weight: bold;
color: #F50;
}
+td {
+ padding: 0 1em;
+}
+tr:nth-child(even) {
+ background: #FFF;
+}
+tr:nth-child(odd) {
+ background: #EEE;
+}
diff --git a/tmpl/index b/tmpl/index
index 7a4eba5..e69a07d 100644
--- a/tmpl/index
+++ b/tmpl/index
@@ -1,12 +1,17 @@
{{define "title"}}Index{{end}}
{{define "content"}}
<table>
+<tr>
+ <th>Page</th>
+ <th>Last changed</th>
+ <th>Size</th>
+</tr>
{{range .Pages}}
- <tr>
+<tr>
<td><a href="/view/{{.Name}}">{{.Name}}</a></td>
<td>{{.ModTime.Format "2006 Jan 2 15:04"}}</td>
<td>{{.Size}} bytes</td>
- </tf>
+</tr>
{{end}}
</table>
{{end}}