Pagination and group by date

now that I know that this isn’t really supported (I read your link chain), I came up with a nifty solution using taxonomies.

#/config.yaml
...
taxonomies:
  2015: "2015"
...
#/layouts/taxonomy/2015.html
<h1> 2015 month (layouts\taxonomy\2015.html) </h1>

{{ printf "%#v" . }}
#/layouts/_default/terms.html
<h1> terms default </h1>

{{ printf "%#v" . }}
#/content/post/test-post.md (yaml)
date: "2015-02-14T21:15:34-07:00"

2015:
  - "02"

With the following in place, I successful get an index.html file in at urls /2015/ and /2015/02/, and with the debug print, it will allow me to continue development and refine these pages.

so, config.yaml is fairly easy to implement, 1 taxonomy per year, the post generation (to include the year/mo taxonomy) could probably done with archetypes?

4 Likes