dokufreaks / plugin-blog

Use DokuWiki as blogging tool
https://dokuwiki.org/plugin:blog
GNU General Public License v2.0
23 stars 18 forks source link

Allow the newer/older entries paging controls on blogs to be hidden #94

Closed Kishi85 closed 6 years ago

Kishi85 commented 6 years ago

This is useful if you just want to show the top n posts of a blog on a page.

Example: This is used on www.binary-kitchen.de to just give a top 2 post overview of the kitchen log on the start page without giving the user the option to display older posts as those are available on a separate page.

michitux commented 6 years ago

Is "pager" really the correct name? I think "paginator" would be better, see e.g. https://jekyllrb.com/docs/pagination/. Apart from that this looks good.

Kishi85 commented 6 years ago

Is "pager" really the correct name? I think "paginator" would be better, see e.g. https://jekyllrb.com/docs/pagination/. Apart from that this looks good.

I was assuming the naming scheme applied by Bootstrap for pagination and pager which differences both terms the following way:

Following this definition "pager" seems to be the correct choice.

Kishi85 commented 6 years ago

I've rebased the pull request and changed the flag parsing (the if/else was an oversight on my side and is now corrected). I've also change the flag name to 'nopagingcontrols' to avoid any ambiguity and describe directly what the flag does.