diff options
Diffstat (limited to 'layouts/list.html')
| -rw-r--r-- | layouts/list.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/layouts/list.html b/layouts/list.html new file mode 100644 index 0000000..cc6c7be --- /dev/null +++ b/layouts/list.html @@ -0,0 +1,21 @@ +{{ define "main" }} + <h1>{{ .Title }}</h1> + <table> + <thead> + <tr> + <th>Date</th> + <th>Title</th> + </tr> + </thead> + <tbody> + {{ range .Pages }} + {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} + {{- $dateHuman := .Date | time.Format "2006-01-02" -}} + <tr> + <td><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></td> + <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td> + </tr> + {{ end }} + </tbody> + </table> +{{ end }} |