fixed missing tags after post creating

This commit is contained in:
2026-05-14 22:26:04 +02:00
parent 70769a696d
commit 31a38d59bc
+8
View File
@@ -78,6 +78,14 @@ const hasContact = (siteConfig.contact_links?.length ?? 0) > 0;
const savedTheme = localStorage.getItem('user-theme') || defaultTheme || 'salon'; const savedTheme = localStorage.getItem('user-theme') || defaultTheme || 'salon';
document.documentElement.classList.add(savedTheme); document.documentElement.classList.add(savedTheme);
</script> </script>
<script is:inline>
// When a page is restored from the back/forward cache (e.g. after
// saving in the editor and hitting Back), the SSR'd post grid is
// stale. Force a fresh fetch so newly edited tags / titles show up.
window.addEventListener('pageshow', function (e) {
if (e.persisted) window.location.reload();
});
</script>
<slot name="head" /> <slot name="head" />
</head> </head>
<body class="text-text"> <body class="text-text">