Option to render other .hbs (static pages) files like home.hbs #1337
-
Plublii is promising, but I'm creating a custom theme and it's not possible to add other static pages (contact, about us, etc). Is this scheduled for future releases? |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
You can achieve this by marking the post as hidden and/or creating additional post templates. |
Beta Was this translation helpful? Give feedback.
-
I believe it is not the same thing. I would like to be able to create a "contact.hbs" file with custom code, for example, and have this template compiled as a static page in the root directory as "contact.html" |
Beta Was this translation helpful? Give feedback.
-
Instead, you can create a post template featuring your custom code and apply it to the hidden post. This approach will function as you've described. |
Beta Was this translation helpful? Give feedback.
-
In general, the post marked as hidden works as a "static" page. |
Beta Was this translation helpful? Give feedback.
-
How do I create this additional template for posts? |
Beta Was this translation helpful? Give feedback.
-
I recommend visit the dev docs https://getpublii.com/dev/how-to-create-custom-templates/ |
Beta Was this translation helpful? Give feedback.
-
thank's @bobmitro |
Beta Was this translation helpful? Give feedback.
-
@bobmitro Can you help me with this? |
Beta Was this translation helpful? Give feedback.
-
It should work; the code is ok. Where do you edit the theme files? Provide the path to your theme. |
Beta Was this translation helpful? Give feedback.
You can achieve this by marking the post as hidden and/or creating additional post templates.