I have display ads on my site, and I’m looking to disable them on my homepage only using a script that’s been provided to me by my ad management provider. I know I can use code injection on specific pages, but I’m not seeing how I can implement it only on the homepage without it being applied site wide.
Any help would be greatly appreciated. 
I would assume needing to edit the hbs is the cleanest way but you could probably test out with this (though ask your ads provider as they should be able to exclude the homepage through their platform).
In Code Injection (global), you can use:
<script>
if (window.location.pathname === "/") {
// Homepage-specific code here
}
</script>
This is possible but it depends if you are using a Page as your home page or the Ghost default landing page. If you are using the ghost default landing you will need to edit the .hbs file. Otherwise, if it’s a page, there is a code injection option per-page on the right-side panel.
Thank you Max! I am using the ghost default landing page so this is super helpful information.