diff options
Diffstat (limited to 'templates/note.html')
| -rw-r--r-- | templates/note.html | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/templates/note.html b/templates/note.html index 939fdfa..ea73b99 100644 --- a/templates/note.html +++ b/templates/note.html | |||
| @@ -15,30 +15,13 @@ | |||
| 15 | 15 | ||
| 16 | <section> | 16 | <section> |
| 17 | <h2>Other notes</h2> | 17 | <h2>Other notes</h2> |
| 18 | <table> | 18 | <nav class="multicolumn-list"> |
| 19 | <thead> | 19 | {{ range .Pages | filterbytype "note" | random 12 }} |
| 20 | <tr> | 20 | {{ if not .Draft }} |
| 21 | <th>Date</th> | 21 | <a href="{{ .RelPermalink }}">{{ .Title }}</a> |
| 22 | <th>Title</th> | 22 | {{ end }} |
| 23 | <th></th> | 23 | {{ end }} |
| 24 | </tr> | 24 | </nav> |
| 25 | </thead> | ||
| 26 | <tbody> | ||
| 27 | {{ range .Pages | filterbytype "note" | random 15 }} | ||
| 28 | {{ if not .Draft }} | ||
| 29 | <tr> | ||
| 30 | <td><time datetime="{{ .Created.Format "2006-01-02" }}">{{ .Created.Format "2006-01-02" }}</time></td> | ||
| 31 | <td><a href="{{ .RelPermalink }}">{{ .Title }}</a></td> | ||
| 32 | <td class="tags"> | ||
| 33 | {{ if .Meta.tags }} | ||
| 34 | {{ range .Meta.tags }}<mark>{{ . }}</mark>{{ end }} | ||
| 35 | {{ end }} | ||
| 36 | </td> | ||
| 37 | </tr> | ||
| 38 | {{ end }} | ||
| 39 | {{ end }} | ||
| 40 | </tbody> | ||
| 41 | </table> | ||
| 42 | </section> | 25 | </section> |
| 43 | 26 | ||
| 44 | {{ if .Page.Meta.mathjax }} | 27 | {{ if .Page.Meta.mathjax }} |
