Most of my pages are rendered according to single.html
, list.html
, index.html
, or a template for a taxonomy page. These cover for example /blog
, /fruit
, /veg
.
My problem is that I want to put a page at the top level, as a single page not an index (list), but not using template single.html
. There will be a few of these such as /about
, /policies
, etc. and they need to be laid out differently than blog posts (for example, no author or date shown).
So I made a new template info.html
- now the problem is somehow getting the “about” page to use it.
The main-item-content file is : <projectDirectory>/content/about.md
(alongside <projectDirectory>/content/blog
, etc.).
According to the page “Single Content Template” in the docs, if “info” is specified for both ‘type
’ and ‘layout
’ in the Front Matter, and /layouts/info/info.html
is present, it will be the first template chosen.
I’ve also tried putting info.html
in the layouts root, in the section folder, copying it with name `about.html’, different combinations of settings in the Front Matter, and other steps I don’t even recall. No matter what I do, the ‘about’ page is always rendered with /layouts/_default/single.html.
How can I use a different template for these few pages?