Hello,
I use this
{% for project in site.projects %}
<h3><a href="{{ project.url }}">{{ project.title }}</a><h3>
{% endfor %}
to generate a list of project titles from the my_collections/_projects
folder.
In the _config.yml I have this:
collections:
projects:
permalink: /:collection/:title
output: true
The front matter for the project files look like this (they have a date attribute):
---
title: First project
subtitle: This is the first project of the "projects" collection.
date: 2017-04-22
---
and
---
title: Second project
subtitle: This is the second project of the "projects" collection.
date: 2017-04-23
---
Currently the list generated is in chronological order i.e.
first project
second project
How could I reverse this list?
There will be many more projects, so I would like to use the date to organise them (and ideally not do it manually or with sort by
as described here.
Thanks! k