Raneto icon indicating copy to clipboard operation
Raneto copied to clipboard

Limit main articles

Open alessandrogus opened this issue 9 years ago • 5 comments

Can I limit the number of files displayed on the home page? There are 30 main articles, but I would like to show 10.

Thanks!

alessandrogus avatar Sep 13 '16 02:09 alessandrogus

Your use-case makes sense. Where it gets sticky is how we handle it.

  • inside the main configuration
  • inside each article's yaml metadata (show_on_home: yes)
  • a separate home.md file to provide a custom listing of articles and categories
  • many other things I would never think of

Opening for discussion

ryanlelek avatar Sep 13 '16 22:09 ryanlelek

It is a good idea inside yaml metadata "show_on_home: yes". Also, I think that create a file "max_articles" like a "sort", in order to define how many articles of category you want.

alessandrogus avatar Sep 14 '16 01:09 alessandrogus

Another ideia: main articles can be random. If you have 100 articles in your directory, but you want show only 10 in ramdom mode.

alessandrogus avatar Sep 21 '16 18:09 alessandrogus

Both sound like good options, marking as help-wanted and up-for-grabs since it's an enhancement

ryanlelek avatar Oct 26 '16 23:10 ryanlelek

a simple thought: for directories larger than a certain size, prevent the main page from looking more than two levels into the directory -so content>folders>subfolder/.md_titles.

theinexplicablefuzz avatar Jan 05 '17 16:01 theinexplicablefuzz