Skip to content
This repository has been archived by the owner. It is now read-only.

Change order of post listing #13

Narven opened this Issue Oct 28, 2017 · 1 comment


None yet
2 participants
Copy link

Narven commented Oct 28, 2017

How can I change the order of the listing of posts? Is showing from older to new... I want new to old.



This comment has been minimized.

Copy link

StevenMMortimer commented Feb 20, 2018

@Narven You should change Line 10 of /layouts/_default/list.html.

Replace Line 10 with the following code to order from new to old based on the date of the article, not the date it was published:

{{ range .Data.Pages.ByDate.Reverse }}

@nurlansu nurlansu closed this in f1f4743 Aug 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.