You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
I do want my pages to be grouped, but grouping only by year is too course-grained. If you've written more than pagination.pagerSize posts the current year, it would basically put all the (visible) posts under the same group which is a bit pointless.
On my personal blog, I've changed that date pattern to January 2006 which gives me some 4-6 posts per group given my weekly publishing pace. I think this gives not only some context to the reader, but also breaks a monotonous list page into nice sections.
I've currently solved this the by making a local copy of list.html and make the change, which isn't ideal. I would love for Congo to support his natively.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
When the
list.groupByYearparameter is enabled, Congo uses the date pattern2006when grouping pages by date.congo/layouts/list.html
Lines 29 to 30 in 53f7e89
I do want my pages to be grouped, but grouping only by year is too course-grained. If you've written more than
pagination.pagerSizeposts the current year, it would basically put all the (visible) posts under the same group which is a bit pointless.On my personal blog, I've changed that date pattern to
January 2006which gives me some 4-6 posts per group given my weekly publishing pace. I think this gives not only some context to the reader, but also breaks a monotonous list page into nice sections.I've currently solved this the by making a local copy of
list.htmland make the change, which isn't ideal. I would love for Congo to support his natively.Beta Was this translation helpful? Give feedback.
All reactions