Unpublished blog shows children articles

I’m working on a personal page to which I want to add a blog section, with some articles, but I want to leave that section disabled for now. If I unpublish the blog page, I can still access the child pages (item type)

Is there a way to prevent the child pages of a collection from being accessible if the parent page is unpublished?

To avoid seeing some modular parts of the home page, as latest posts has been simple:

{% if blog.published %}
{% include 'partials/sidebar/latestposts.html.twig' with {'blog': blog } %}
{% endif %}

But I don’t know if I should do the same in the item.html.twig template or is there some different way.