From 5a1d8073b5a5e885c8a217f5d967661714995842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Gonz=C3=A1lez=20V=C3=A1zquez?= Date: Wed, 19 Apr 2023 09:12:22 -0600 Subject: [PATCH] Added party town --- astro.config.mjs | 13 +- package.json | 3 + src/data/profile.json | 10 +- src/layouts/main.astro | 3 +- yarn.lock | 1037 ++++++++++++++++++++++------------------ 5 files changed, 602 insertions(+), 464 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 96a1f1d..bded4c4 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -2,14 +2,19 @@ import { defineConfig } from "astro/config"; import tailwind from "@astrojs/tailwind"; import svelte from "@astrojs/svelte"; import sitemap from "@astrojs/sitemap"; - import mdx from "@astrojs/mdx"; +import partytown from "@astrojs/partytown"; +// https://astro.build/config export default defineConfig({ site: "https://rafa.page/", integrations: [tailwind({ config: { - applyBaseStyles: false, + applyBaseStyles: false } - }), svelte(), sitemap(), mdx()] -}); + }), svelte(), sitemap(), mdx(), partytown({ + config: { + forward: ["dataLayer.push"] + } + })] +}); \ No newline at end of file diff --git a/package.json b/package.json index fcebca1..3e76305 100644 --- a/package.json +++ b/package.json @@ -23,5 +23,8 @@ "tailwindcss": "^3.2.7", "typescript": "^4.9.5", "vite": "^4.1.4" + }, + "dependencies": { + "@astrojs/partytown": "^1.2.0" } } diff --git a/src/data/profile.json b/src/data/profile.json index a2e5e3c..5d69334 100644 --- a/src/data/profile.json +++ b/src/data/profile.json @@ -49,16 +49,16 @@ "url": "https://github.com/acromatico-development", "icon": "github" }, - { - "name": "Instagram", - "url": "https://www.instagram.com/acromatico.dev", - "icon": "instagram" - }, { "name": "Discord", "url": "https://discord.gg/NswUaFSG", "icon": "discord" }, + { + "name": "Instagram", + "url": "https://www.instagram.com/acromatico.dev", + "icon": "instagram" + }, { "name": "LinkedIn", "url": "https://www.linkedin.com/company/acromatico", diff --git a/src/layouts/main.astro b/src/layouts/main.astro index 92fddc0..ff77df3 100644 --- a/src/layouts/main.astro +++ b/src/layouts/main.astro @@ -164,9 +164,10 @@ const { } -