Sign in

Different index.html home page

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

    How is it possible to have a different already existing html file on the server for the index.html home page, so that it is not overwritten when we Sync our website? I mean can we set the home page of our blog as a different file name like blog.html or something or any other setting to do this? If we can’t do this, please do add this very simple yet useful feature in next version. There may be many reasons where we would want an individual and separate home page. I know there is an option to set a post as a home page. But please add the option to set the slug of the home page something different to index.html so that we can use our own custom home if we want. Thanks.

    #4903
    NitaaiKumar

    An option to set a Custom web url under Theme -> Layout -> Front Page Displays would fix this problem. And giving the blog home page some different html url like blog.html. Please kindly consider this in your upcoming updates. So that we don’t have to manually rename the index file on the server everytime after Syncing. Thanks.

    #4904
    Bob
    Support

    Just modify the index.hbs file the way you want, create an override, that’s it.

    index.hbs:
    ⁨(Documents ▸ ⁨Publii⁩ ▸ ⁨sites⁩ ▸ ⁨YOUR_SITE ▸ ⁨input⁩ ▸ ⁨themes⁩ ▸ ⁨YOUR_THEME ▸ index.hbs)

    To preserve the custom code changed from being overwritten the next time your theme is updated, please make sure you have created override files, which are essentially copies of the existing theme files and are stored separately → https://getpublii.com/dev/theme-overrides/

    --
    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!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.