I got a template from jekylltheme.org and created a branch in my own repository, hosted it on a GitHub page, and got the "---- layout: home # Index page ----" problem! I am new in this field, what is the problem? Thanks!
Template source address https://github.com/cotes2020/jekyll-theme-chirpy/
The address of the branch I created: https://github.com/skywalkergene/skywalkergene.github.io
Result:
I haven't changed any of the code in the repository.