Amit Saha 5/5/2020

Sorting pages by last modified date in Hugo

Read Original

This article provides a specific solution for Hugo users to sort their blog's index page by the last modified date of pages, rather than the publication date. It includes the necessary template code using `.Data.Pages.ByLastmod.Reverse` and the required configuration settings like `enableGitInfo = true`.

Sorting pages by last modified date in Hugo

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes