From c8f205cef365cee76a532986ee8d4f5e977715b3 Mon Sep 17 00:00:00 2001
From: Alex Stephen <1325798+rambleraptor@users.noreply.github.com>
Date: Wed, 9 Oct 2024 22:39:38 -0400
Subject: [PATCH] adding GTM components (#36)
---
astro.config.mjs | 18 +++++-------------
src/components/overrides/Head.astro | 19 +++++++++++++++++++
src/components/overrides/PageFrame.astro | 14 ++++++++++++++
3 files changed, 38 insertions(+), 13 deletions(-)
create mode 100644 src/components/overrides/Head.astro
create mode 100644 src/components/overrides/PageFrame.astro
diff --git a/astro.config.mjs b/astro.config.mjs
index c658c53..ca56efa 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -27,21 +27,13 @@ export default defineConfig({
social: {
github: config.urls.repo,
},
- sidebar: sidebar
+ sidebar: sidebar,
+ components: {
+ 'Head': './src/components/overrides/Head.astro',
+ 'PageFrame': './src/components/overrides/PageFrame.astro',
+ }
}),
tailwind({
applyBaseStyles: false,
})],
- vite: {
- plugins: [
- VitePluginRadar({
- analytics: {
- id: config.site.ga_tag
- },
- gtm: {
- id: config.site.ga_tag
- },
- }),
- ],
- }
});
diff --git a/src/components/overrides/Head.astro b/src/components/overrides/Head.astro
new file mode 100644
index 0000000..72e4080
--- /dev/null
+++ b/src/components/overrides/Head.astro
@@ -0,0 +1,19 @@
+---
+import Default from "@astrojs/starlight/components/Head.astro";
+---
+
+
+
+
+
diff --git a/src/components/overrides/PageFrame.astro b/src/components/overrides/PageFrame.astro
new file mode 100644
index 0000000..fbbf121
--- /dev/null
+++ b/src/components/overrides/PageFrame.astro
@@ -0,0 +1,14 @@
+---
+import Default from "@astrojs/starlight/components/PageFrame.astro";
+---
+
+
+
+
+