package initer const defaultRSSTemplate string = ` YOUR TITLE LINK TO YOUR BLOG DESCRIPTION OF YOUR BLOG {{range $index, $post := .}} {{- if (lt $index 10)}} {{$post.Meta.Title}} BASE ADDRESS OF YOUR BLOG{{$post.Link}} {{$post.Meta.RFC1123Date}} {{end}} {{- end}} ` const defaultTemplate string = ` {{.Title}} {{if or .PostCollection .Blogpost}} {{end}}

{{if .Blogpost}}{{.Blogname}}: {{end}}{{.Title}}

{{if .Description}}

{{.Description}}

{{end}} {{if .Subpages}}
{{range $index, $subpage := .Subpages}}
[{{$subpage.Title}}]
{{$subpage.Description}}
{{end}}
{{end}} {{if .PostCollection}}

Categories     Timeline

{{range $index, $post := .PostCollection}}

{{$post.Title}}

{{$post.Content}}
{{end}} {{end}}
{{.Content}} {{if .Categories}}
Posted in {{range $index, $category := .Categories}} {{$category.Name}} {{end}}
{{end}} {{if .Time}}
{{.Time}} UTC
{{end}} {{if .CategoryListings}} {{if .Blogpost}}
Related posts: {{else}}
{{end}}
{{range $i, $listing := .CategoryListings -}}
{{$listing.Name}}
{{range $j, $post := $listing.Posts -}}
{{$post.Meta.Title}}
{{end}} {{end}}
{{end}} {{if .TimelineListing}}
{{range $i, $post := .TimelineListing -}} {{$post.Meta.FormattedDate}}: {{$post.Meta.Title}}
{{end}}
{{end}}
{{if or .Previous .Later}}
{{if .Previous}}

<--Previous

{{end}} {{if .Later}}

Later-->

{{end}}

{{end}} `