aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html36
1 files changed, 8 insertions, 28 deletions
diff --git a/templates/index.html b/templates/index.html
index ce656ff..c124804 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -3,48 +3,28 @@
3{{ define "content" }} 3{{ define "content" }}
4 4
5<section> 5<section>
6 <h2>Notes</h2> 6 <h2>Notes / Posts</h2>
7 <table> 7 <table>
8 <thead> 8 <thead>
9 <tr> 9 <tr>
10 <th>Date</th> 10 <th>Date</th>
11 <th width="20"></th>
11 <th>Title</th> 12 <th>Title</th>
12 <th></th> 13 <th></th>
13 </tr> 14 </tr>
14 </thead> 15 </thead>
15 <tbody> 16 <tbody>
16 {{ range .Pages }} 17 {{ range .Pages }}
17 {{ if and (not .Draft) (eq .Type "note") }} 18 {{ if and (not .Draft) (or (eq .Type "note") (eq .Type "post")) }}
18 <tr> 19 <tr>
19 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td> 20 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td>
20 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td> 21 <td valign="middle">
21 <td class="tags"> 22 {{ if (eq .Type "note") }}
22 {{ if .Meta.tags }} 23 <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 512 512" style="display:block;">
23 {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} 24 <path fill="black" fill-rule="evenodd" d="M448 343.045 343.045 448H64V64h384v279.045Zm-42.667-65.712V106.667H106.667v298.666h170.666v-128h128Zm0 42.667H320v85.333h5.333l80-80V320Z"/>
25 </svg>
24 {{ end }} 26 {{ end }}
25 </td> 27 </td>
26 </tr>
27 {{ end }}
28 {{ end }}
29 </tbody>
30 </table>
31</section>
32
33<section>
34 <h2>Posts</h2>
35 <table>
36 <thead>
37 <tr>
38 <th>Date</th>
39 <th>Title</th>
40 <th></th>
41 </tr>
42 </thead>
43 <tbody>
44 {{ range .Pages }}
45 {{ if and (not .Draft) (eq .Type "post") }}
46 <tr>
47 <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td>
48 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td> 28 <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td>
49 <td class="tags"> 29 <td class="tags">
50 {{ if .Meta.tags }} 30 {{ if .Meta.tags }}