From e084177acf2666e26fb3f65e029bca921f1e4296 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Fri, 24 Apr 2026 17:13:07 +0200 Subject: [PATCH] Add BaseLayout with meta tags, favicon, robots.txt, and OG card Co-Authored-By: Claude Sonnet 4.6 --- public/favicon.svg | 8 ++++++ public/og-image.svg | 13 +++++++++ public/robots.txt | 4 +++ src/layouts/BaseLayout.astro | 53 ++++++++++++++++++++++++++++++++++++ src/pages/index.astro | 11 ++++---- 5 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 public/favicon.svg create mode 100644 public/og-image.svg create mode 100644 public/robots.txt create mode 100644 src/layouts/BaseLayout.astro diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..89915d6 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/public/og-image.svg b/public/og-image.svg new file mode 100644 index 0000000..7421288 --- /dev/null +++ b/public/og-image.svg @@ -0,0 +1,13 @@ + + + + + + + + + OBSERVABILITY · APACHE CAMEL + See every route. + Reach into every flow. + cameleer.io + diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..137a33f --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Allow: / + +Sitemap: https://www.cameleer.io/sitemap-index.xml diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..b3326d8 --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,53 @@ +--- +import '../styles/global.css'; + +interface Props { + title: string; + description: string; + canonicalPath?: string; + ogImage?: string; +} + +const { + title, + description, + canonicalPath = Astro.url.pathname, + ogImage = '/og-image.svg', +} = Astro.props; + +const canonical = new URL(canonicalPath, Astro.site ?? 'https://www.cameleer.io').toString(); +const ogUrl = new URL(ogImage, Astro.site ?? 'https://www.cameleer.io').toString(); +--- + + + + + + + + + + {title} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index b33b7fe..aaba719 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,8 @@ --- -import '../styles/global.css'; +import BaseLayout from '../layouts/BaseLayout.astro'; --- - - scaffold -

scaffold ok

- + +
+

BaseLayout ok

+
+