title Home {% for post in site.posts %} {% include post-card.html post=post %} {% endfor %} <script> if (window.netlifyIdentity) { window.netlifyIdentity.on("init", user => { if (!user) { window.netlifyIdentity.on("login", () => { document.location.href = "/admin/"; }); } }); } </script>