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