Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

Different index.html home page

  • #4874
    Avatar photo[anonymous]

    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
    Avatar photo[anonymous]

    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
    Avatar photoBob

    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/