List all pages in a Jekyll site by date last updated

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


List all pages in a Jekyll site by date last updated



I'm using the last_modified_at plugin to display the most recent version of each page of my Jekyll site on each page and it works like a charm.



Question: How do I list all of the pages on the site, most recently updated to oldest?



I can create a list of all pages for the entire site with:


{% for page in site.pages %}
{{ page.title}} | {{ page.last_modified_at | date: '%s' }}
{% endfor %}



It shows the title and then the UTC time that the page was last updated.



The goal is to order this list by the last_modified_at date.


last_modified_at



How do I build this correctly?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived