Different index.html home page
- This topic has 2 replies, 2 voices, and was last updated 1 month, 4 weeks ago by .
- December 29, 2020 at 6:14 am#4874NitaaiKumar
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.December 31, 2020 at 2:44 am#4903NitaaiKumar
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.December 31, 2020 at 8:05 am#4904BobSupport
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 → 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!
- You must be logged in to reply to this topic.