Proper way to apply a unique template to only one page in the root folder of content

I have multiple files in the root folder of content, like about, and etc.
But I need to apply a unique post template to only one file, let’s say

It applies \_default\single.html to all single pages but not, and it should apply test.html template to only.

How should I define the rule that will be rendered by test.html template?
If possible, where should I put test.html?


The simplest way would be to assign a type = "test" parameter in the front matter of the relevant content file for example and then under /layouts/ create the relevant template under/layouts/test/single.html.

1 Like

Great. I works properly.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.