<!-- orders content according to the "publishdate" field in front matter -->
<ul>
{{ range .Pages.ByPublishDate }}
<li>
<h1><a href="{{ .Permalink }}">{{ .Title }}</a></h1>
<time>{{ .Date.Format "2 Jan 2006" }}</time>
</li>
{{ end }}
</ul>
And in each of my posts.md I include the publication date in the front matters, like so:
Title: "Post 1"
publishDate: "1 Jan 2006"
Title: "Post 2"
publishDate: "2 Jan 2006"
Title: "Post 3"
publishDate: "3 Jan 2006"
However my index.html appears as follows, which shouldnāt be right, the posts are not in order by date and thereās this ā1 Jan 0001ā displayed on each of them: