Sorting blog posts in descending order

bep,
Bingo - sort only posts by date reversed - latest at top, where I wanted the date and the title with a link

  {{ range (where .Data.Pages "Section" "post").ByDate.Reverse }}
    {{ .Date.Format  "Jan 02, 2006" }} » <a href="{{ .RelPermalink }}">{{ .Title }}</a><br/>
  {{ end }}

Many thanks
Pat

1 Like