Open thenaterhood opened 8 years ago
@thenaterhood I think you can use paginate...
In this case maybe not, because paginate assumes you have a single stream of posts. The RITlug site has two streams, one for talks and one for announcements.
I don't have time to look at it for now, but here's the docs page showing that GitHub does support the paginate plugin:
https://help.github.com/articles/configuring-jekyll-plugins/#default-plugins
To add some more to this, RITlug's site is organized as a bunch of categories with indexes for each category ("sections" per say). Pageinate (at least the version on GitHub) only pages all categories together, and can't page individual categories. In #151 I'm cheating by limiting to about 2 semesters of posts (and an "archive" page), but this isn't a perfect approach. Unless we want to completely restructure the RITlug site (which I'm not going to do), then this will have to go on the back burner until GitHub decides to change to the new plugin.
I think #151 is probably the best we can do to address this for now. After PR #151 is merged, I suggest we also close this issue as complete / resolved, since there is not a better workaround until GitHub enables support with the pagination plugin. If support is ever added, we can revisit then.
@jwflory how about a "blocked" label? At some point I do want to do it and I might be able to minimally implement some of it in the future
@ct-martin That works – could you elaborate on what exactly is the blocker and what needs to happen to unblock this ticket? This will help if we revisit this six months, a year, or two eboards from now into the future.
@jwflory Sure. The blocker is that there is not an easy way to do this. There are two ways that this will be accomplished:
Removing announcements from this as the announcements feed is being deprecated. Talks should still be looked at for this.
@ct-martin is this issue still relevant?
@Tjzabel I'm not sure. It'd be nice if it was, but I may close it soon. Ping me again in a couple weeks to check if there are any GH Pages updates
Right now, the talks and announcements pages have no pagination and will just continue to get longer. As far as I'm aware, Jekyll doesn't support pagination of multiple things natively so some JavaScript magic or other "creative" method of doing it may need to be implemented. Github pages doesn't allow Jekyll plugins.