Limit main articles
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!
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.mdfile to provide a custom listing of articles and categories - many other things I would never think of
Opening for discussion
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.
Another ideia: main articles can be random. If you have 100 articles in your directory, but you want show only 10 in ramdom mode.
Both sound like good options, marking as help-wanted and up-for-grabs since it's an enhancement
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.