feat: make weather fetching dynamic
Some checks failed
renovate / renovate (push) Successful in 45s
test-build / build (push) Has been cancelled

This commit is contained in:
2026-02-11 14:43:13 -06:00
parent 1573331f87
commit 7f7f710fe8
5 changed files with 54 additions and 46 deletions

View File

@@ -45,10 +45,13 @@ const weather = await directus.request(readSingleton('site_weather'));
<FeaturesSection />
<WeatherSection
server:defer
latitude={weather.latitude}
longitude={weather.longitude}
cityName={weather.location}
/>
timezone={weather.timezone}
>
</WeatherSection>
<LatestPosts />
@@ -109,5 +112,11 @@ const weather = await directus.request(readSingleton('site_weather'));
};
animateContent();
const observer = new MutationObserver(() => {
animateContent();
});
observer.observe(document.body, { childList: true, subtree: true });
});
</script>