Skip to content

Commit ab620dc

Browse files
authored
chore: remove e-mail tags (#970)
1 parent 027d4d5 commit ab620dc

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/components/Footer.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const socialLinks = siteInfo.socialLinks
100100
aria-label="Secondary"
101101
class="flex flex-col items-start justify-between gap-12 py-8 sm:flex-row-reverse md:py-12"
102102
>
103-
<NewsLetterSignup tag="footer" />
103+
<NewsLetterSignup />
104104
<div class="grid grid-cols-2 gap-12 sm:flex sm:flex-wrap sm:gap-16 lg:gap-20">
105105
{
106106
groups.map(({ title, items }, index) => (

src/components/NewsLetterSignup.astro

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
interface Props {
33
skipText?: boolean
4-
tag?: string
54
}
6-
const { skipText = false, tag } = Astro.props
5+
6+
const { skipText = false } = Astro.props
77
---
88

99
<div class={`${skipText ? "mx-auto" : ""} flex flex-col self-center md:max-w-sm`}>
@@ -21,9 +21,7 @@ const { skipText = false, tag } = Astro.props
2121
action="https://buttondown.email/api/emails/embed-subscribe/withastro"
2222
method="post"
2323
target="popupwindow"
24-
onsubmit={`window.open('https://buttondown.email/withastro${
25-
tag ? `?tag=${tag}` : ``
26-
}', 'popupwindow')`}
24+
onsubmit="window.open('https://buttondown.email/withastro', 'popupwindow')"
2725
class="flex flex-col justify-between"
2826
>
2927
<input

src/pages/newsletter/signup.astro

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Houston from "../_assets/houston_peep.webp"
1414
Enter your email to stay in the know with the latest updates from Astro.
1515
</p>
1616
<div class="w-full">
17-
<NewsLetterSignup tag="page" skipText={true} />
17+
<NewsLetterSignup skipText={true} />
1818
</div>
1919
</div>
2020
<div class="flex w-full justify-center overflow-clip">

0 commit comments

Comments
 (0)