Sign in

Adding new pages

  • This topic has 4 replies, 2 voices, and was last updated 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3233
    Niketas

    Hello! I’m new in Publii and also in Handlebars js. I’m trying to port a simple html/css/js template into Publii.

    I wonder if is possible to render a new page such as an “About” page and adding it to the main menu.

    I’ve tried to create an “about.hbs” page adding the content needed but I can’t reach this page from my static website (preview).

    Can you give some advices?

    #3234
    BobBob
    Support

    Just add a new post and mark it as “hidden” post. If you want to have a unique HTML structure, you can create an additional post template and assign it to a newly created post.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3235
    Niketas

    Thank you for reply Bob!

    So if I want a different template for that page I have to create a post-TEMPLATE_SLUG.hbs to use with that blog post?

    Basically I can’t create a new page such as the frontpage and render it?

    #3236
    BobBob
    Support

    So if I want a different template for that page I have to create a post-TEMPLATE_SLUG.hbs

    yeap, indeed.

    Basically I can’t create a new page such as the frontpage and render it?

    You can create a post-template with a similar structure as the index.hbs file, but just copying the content of the index.hbs won’t help, the post template has its own handlebars tags https://getpublii.com/dev/post-page-tags/

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #3237
    Niketas

    Fine! Thank you very much Bob!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Adding new pages’ is closed to new replies.