How can I disable layout for index.ejs?
I have layout.ejs for every sub page/post. But my homepage have a very different design, how can I render index.ejs without being wrapped by layout.ejs? In other words, can I disable layout for "root" page?
I'm looking for the same feature. Any idea ?
By "root" do you mean the landing/index page?
If so, refer to #1491, add index.md and remove hexo-generator-index.
necro, but it's still open so /shrug
the best way to do this would just be to create a new layout (assuming you want to use hexo functionality), and call that from the front-matter via https://hexo.io/docs/templates.html it
By default, the
layouttemplate is used by all other templates. You can specify additional layouts in the front-matter or set it to false to disable it. It’s even possible to build a complex nested structure by including more layout templates in your top layout.
though it seems a little odd that you can disable layout.js or add a layout to it, but not specify a peer layout for it (apparently).
@erutan Yep, that's how I have done :laughing: