make-github-pseudonymous-again/math

add future posts feature

Closed this issue · 3 comments

To handle upcoming events for instance.

See the discussion at gohugoio/hugo#5995.
I think the best solution is to have past and future posts in two different sections.
A Makefile will handle moving posts to their proper section depending on the date at build time.
This handles automagically Future and Past sections. We will be able to list the first three upcoming posts and the last three past posts on the side with a link to the correct section with all posts. The index.html will point to either past or future posts or a mix of both if possible (?). If we can mix those sections on the index then the .ics with all posts will be automatically created. Otherwise we will have to create it manually.

I don't know if it will be possible to paginate future events in reverse order though (see gohugoio/hugo#2608). Listing them in reverse order on the side column should not be a problem.

Everything is there in a16f944 except for reverse ordering of upcoming events. Still have to figure out how to make that configurable.