fixed missing tags after post creating
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user