jekyll-theme-chirpy
jekyll-theme-chirpy copied to clipboard
feat: let any layout able to be homepage
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [x] Improvement (refactoring and improving code)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update
Description
- separate posts from the homepage:
- other suffixes of index is able to use
- now any layout can be homepage by change page.layout of index.html
- add posts layout same as the old home layout
- retained the home layout for compatibility
Additional context
Known issues:
- non index posts can not be paginated
- neither of jekyll-paginate or jekyll-paginate-v2(production) is able to work it out
Todo:
- remove home layout
- a breaking change
Thanks for reaching out! Dynamic tabs is something that had been planned before, and this feature is not very urgent. And you've submitted a lot of changes that I haven't had time to review yet.
As you said, this is a breaking change, so it should be moved forward slowly and carefully.
It's not recommended to use page.layout == *
as condition if you want to support any layouts. It's better to include needed pages in the specific layouts.
there are many commits behind master. try to get a more fluently change