Closed kilmc closed 10 years ago
index.html
only represents one page, so if you want a template to cover an entire directory tree, you need to rename it to default.html
. Also, if blog
is your home page (at the top of the pages list), the slug will return blank.
Brilliant. I knew it had to be me doing something simple incorrectly. Got it all working now. Thanks.
Hey guys,
I'm pretty sure this is just me doing something wrong but I wanted to check. I'm trying to clean up my code and I'm moving away from multiple index files.
I now have one index.html in the root directory and in it I've added this block
Both those includes are at those paths.
Also when I duplicate the root index.html and put it in a /blog directory it renders the page correctly.
Thanks in advance