~gsthnz/gssg

373310203d800a2c6942934cb078140d6c12c2f5 — Trevor Slocum 6 months ago 8263e6b
Fix posts list

Formatting was a bit off, this should be correct.
1 files changed, 2 insertions(+), 2 deletions(-)

M templates.go
M templates.go => templates.go +2 -2
@@ 25,8 25,8 @@ const default_index_template = `{{ .Content }}
{{ $postlenght := len .Children.posts -}}
{{ if gt $postlenght 0 -}}
## Posts on {{ .Config.Title }}
{{ range $post := .Children.posts -}}
=> {{ $post.URLPath }} {{ $post.Date.Format "2006-01-02" }} - {{ $post.Title -}} {{end}}
{{ range $post := .Children.posts }}
=> {{ $post.URLPath }} {{ $post.Date.Format "2006-01-02" }} - {{ $post.Title }}{{ end }}
{{ end }}`

const atom_feed_template = `<?xml version="1.0" encoding="utf-8"?>