<div><script>
  document.addEventListener(&quot;DOMContentLoaded&quot;, function () {
    // Obter o caminho da URL (sem o domínio)
    const currentPath = window.location.pathname;


    const mainElement = document.querySelector(&#39;main#main.centered-bottom&#39;);

    // Verificar se a URL corresponde ao formato /AAAA/MM/algum-post.html
    const isPostPage = currentPath.match(/\/\d{4}\/\d{2}\/[a-z0-9-]+\.html$/);

    // Se não for uma página de postagem, esconder o conteúdo
    if (mainElement &amp;&amp; !isPostPage) {
      mainElement.style.display = &quot;none&quot;;
    }
  });
</script>
<script>
  document.addEventListener(&quot;DOMContentLoaded&quot;, function () {
    // Obter o caminho da URL (sem o domínio)
    const currentPath = window.location.pathname;

    // Verificar se a URL corresponde ao formato /AAAA/MM/algum-post.html
    const isPostPage = currentPath.match(/\/\d{4}\/\d{2}\/[a-z0-9-]+\.html$/);

    // Se não for uma página de postagem, redirecionar para uma página em branco
    if (!isPostPage) {
      document.body.innerHTML = &quot;&quot;;  // Apaga todo o conteúdo
    }
  });
</script> 
</div>