From 3bfe7d45f0aaf1b4060b6eac44b550f558460180 Mon Sep 17 00:00:00 2001 From: Manolis Nikiforakis Date: Tue, 29 Sep 2026 04:44:22 +0300 Subject: [PATCH 1/5] Add canonical metadata and WebApplication schema --- src/layouts/SiteLayout.astro | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/layouts/SiteLayout.astro b/src/layouts/SiteLayout.astro index 080db85..d6da2cb 100644 --- a/src/layouts/SiteLayout.astro +++ b/src/layouts/SiteLayout.astro @@ -11,6 +11,21 @@ interface Props { } const { title, description, device, noindex = false } = Astro.props; +const canonicalUrl = new URL(Astro.url.pathname, 'https://flasher.weatherxm.com').href; +const schema = { + '@context': 'https://schema.org', + '@type': 'WebApplication', + name: title, + description, + url: canonicalUrl, + applicationCategory: 'UtilitiesApplication', + operatingSystem: 'Any', + publisher: { + '@type': 'Organization', + name: 'WeatherXM', + url: 'https://weatherxm.com' + } +}; --- @@ -28,6 +43,14 @@ const { title, description, device, noindex = false } = Astro.props; {title} + + + + + + + +