diff options
author | Andrew Gerrand <adg@golang.org> | 2013-03-08 09:22:40 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2013-03-08 09:22:40 +1100 |
commit | 0ee9872fcd5cf9023cb43a68faf67203cbe81295 (patch) | |
tree | faa873e0163e1d1b35e86b812de77afd3da7f6bb /template/index.tmpl | |
parent | c26ca9cbba2bc725e1d7d26754ac5167a44ddb76 (diff) |
go.blog: blog server
R=golang-dev, dsymonds, r
CC=golang-dev
https://golang.org/cl/7382064
Diffstat (limited to 'template/index.tmpl')
-rw-r--r-- | template/index.tmpl | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/template/index.tmpl b/template/index.tmpl new file mode 100644 index 0000000..0d3c089 --- /dev/null +++ b/template/index.tmpl @@ -0,0 +1,16 @@ +{{/* This file is combined with the root.tmpl to display the blog index. */}} + +{{define "title"}}Article index - The Go Blog{{end}} +{{define "content"}} + + <h1 class="title">Article index</h1> + + {{range .Data}} + <p class="blogtitle"> + <a href="{{.Path}}">{{.Title}}</a><br> + <span class="date">{{.Time.Format "2 January 2006"}}</span><br> + {{with .Tags}}<span class="tags">{{range .}}{{.}} {{end}}</span>{{end}} + </p> + {{end}} + +{{end}} |