Sign in
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

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

    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.

    Avatar photoNitaaiKumar

    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.

    Avatar photoBob

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

    ⁨(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 →

    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.