From dcdf961804da163ff8dca363c4e5a328ac98e496 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 20 Jun 2024 20:13:01 -0400 Subject: [PATCH 1/3] made sure we stay on same page when using cta for nodes --- src/components/widgets/EmbedMailerLite.astro | 29 ++++++++++++++++++++ src/mailerlite_form.js | 10 +++++++ src/pages/farming.astro | 3 -- src/pages/index.astro | 3 -- src/pages/technology.astro | 1 - 5 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 src/components/widgets/EmbedMailerLite.astro create mode 100644 src/mailerlite_form.js diff --git a/src/components/widgets/EmbedMailerLite.astro b/src/components/widgets/EmbedMailerLite.astro new file mode 100644 index 0000000..e7712c6 --- /dev/null +++ b/src/components/widgets/EmbedMailerLite.astro @@ -0,0 +1,29 @@ +--- +--- + + + +
+
+ + + + +
+ diff --git a/src/mailerlite_form.js b/src/mailerlite_form.js new file mode 100644 index 0000000..c9bcff2 --- /dev/null +++ b/src/mailerlite_form.js @@ -0,0 +1,10 @@ +(function (m, a, i, l, e, r) { + m['MailerLiteObject'] = e; function f() { + var c = { a: arguments, q: [] }; var r = this.push(c); return "number" != typeof r ? r : f.bind(c.q); + } + f.q = f.q || []; m[e] = m[e] || f.bind(f.q); m[e].q = m[e].q || f.q; r = a.createElement(i); + var _ = a.getElementsByTagName(i)[0]; r.async = 1; r.src = l + '?v' + (~~(new Date().getTime() / 1000000)); + _.parentNode.insertBefore(r, _); + })(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml'); + + var ml_account = ml('accounts', '1778010', 'x2d3d9f8n1', 'load'); \ No newline at end of file diff --git a/src/pages/farming.astro b/src/pages/farming.astro index 5e04096..095c29a 100644 --- a/src/pages/farming.astro +++ b/src/pages/farming.astro @@ -59,7 +59,6 @@ const metadata = { } ], callToAction: { - target: '_blank', text: 'Get INCA Nodes', href: '/typeform', }, @@ -87,7 +86,6 @@ const metadata = { } ], callToAction: { - target: '_blank', text: 'Get INCA Nodes', href: '/typeform', }, @@ -117,7 +115,6 @@ const metadata = { } ], callToAction: { - target: '_blank', text: 'Get INCA Nodes', href: '/typeform', }, diff --git a/src/pages/index.astro b/src/pages/index.astro index 1e4c5ef..319f146 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -35,7 +35,6 @@ const metadata = { variant: 'primary', text: 'Get INCA Nodes', href: '/typeform', - target: '_blank', icon: 'tabler:brand-minecraft', }, { text: 'Learn more', href: '#technology' }, @@ -115,7 +114,6 @@ const metadata = { actions={[ { variant: 'primary', - target: '_blank', text: 'Get INCA Nodes', href: '/typeform', icon: 'tabler:brand-minecraft', @@ -360,7 +358,6 @@ const metadata = { variant: 'primary', text: 'Get INCA Nodes', href: '/typeform', - target: '_blank', icon: 'tabler:brand-minecraft', }, ]} diff --git a/src/pages/technology.astro b/src/pages/technology.astro index 466102e..e035355 100644 --- a/src/pages/technology.astro +++ b/src/pages/technology.astro @@ -323,7 +323,6 @@ const metadata = { actions={[ { variant: 'primary', - target: '_blank', text: 'Get INCA Nodes', href: '/typeform', icon: 'tabler:brand-minecraft', From c117b51ce655f82331d6f54e5be8e873567bedd7 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 20 Jun 2024 20:13:59 -0400 Subject: [PATCH 2/3] removed unneeded files --- src/components/widgets/EmbedMailerLite.astro | 29 -------------------- src/mailerlite_form.js | 10 ------- 2 files changed, 39 deletions(-) delete mode 100644 src/components/widgets/EmbedMailerLite.astro delete mode 100644 src/mailerlite_form.js diff --git a/src/components/widgets/EmbedMailerLite.astro b/src/components/widgets/EmbedMailerLite.astro deleted file mode 100644 index e7712c6..0000000 --- a/src/components/widgets/EmbedMailerLite.astro +++ /dev/null @@ -1,29 +0,0 @@ ---- ---- - - - -
-
- - - - -
- diff --git a/src/mailerlite_form.js b/src/mailerlite_form.js deleted file mode 100644 index c9bcff2..0000000 --- a/src/mailerlite_form.js +++ /dev/null @@ -1,10 +0,0 @@ -(function (m, a, i, l, e, r) { - m['MailerLiteObject'] = e; function f() { - var c = { a: arguments, q: [] }; var r = this.push(c); return "number" != typeof r ? r : f.bind(c.q); - } - f.q = f.q || []; m[e] = m[e] || f.bind(f.q); m[e].q = m[e].q || f.q; r = a.createElement(i); - var _ = a.getElementsByTagName(i)[0]; r.async = 1; r.src = l + '?v' + (~~(new Date().getTime() / 1000000)); - _.parentNode.insertBefore(r, _); - })(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml'); - - var ml_account = ml('accounts', '1778010', 'x2d3d9f8n1', 'load'); \ No newline at end of file From b17e3e09f20342294e4c790356bf400da99249d6 Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 20 Jun 2024 20:16:17 -0400 Subject: [PATCH 3/3] removed blank --- src/navigation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/navigation.js b/src/navigation.js index 22a5e54..f4e2303 100644 --- a/src/navigation.js +++ b/src/navigation.js @@ -23,7 +23,7 @@ export const headerData = { href: getPermalink('/blog'), }, ], - actions: [{ text: 'Get INCA Nodes', href: '/typeform', target: '_blank' }], + actions: [{ text: 'Get INCA Nodes', href: '/typeform' }], }; export const footerData = {