Skip to content

Commit 85a591e

Browse files
committed
feat: so long, twitter
1 parent 4905562 commit 85a591e

File tree

11 files changed

+23
-64
lines changed

11 files changed

+23
-64
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ contact_links:
77
- name: 🦋 Lucie's Bluesky
88
url: https://bsky.app/profile/lihbr.com
99
about: Get in touch with me about this package, or anything else on Bluesky
10-
- name: 🐦 Lucie's X
11-
url: https://x.com/li_hbr
12-
about: Get in touch with me about this package, or anything else on X
1310
- name: 🐘 Lucie's Mastodon
1411
url: https://mastodon.social/@lihbr
1512
about: Get in touch with me about this package, or anything else on Mastodon

src/akte/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ export const SITE_LANG = "en"
1010
export const SITE_TITLE = "lihbr"
1111
export const SITE_DESCRIPTION =
1212
"Lucie's place on the internet to share things with friends, students, and digital people."
13-
export const SITE_TWITTER_HANDLE = "li_hbr"
1413
export const SITE_MAIN_AUTHOR = "Lucie Haberer"
1514
export const SITE_ACCENT_COLOR = "#e84311"
1615
export const SITE_BACKGROUND_COLOR = "#fff7f7"
1716
export const SITE_META_IMAGE = {
1817
openGraph:
1918
"https://images.prismic.io/lihbr/e524336e-aebe-41c1-a158-0cf957139e6a_lihbr-apex--1.91_1.png?auto=compress,format",
20-
twitter:
21-
"https://images.prismic.io/lihbr/e524336e-aebe-41c1-a158-0cf957139e6a_lihbr-apex--1.91_1.png?auto=compress,format",
2219
} as const
2320
export const SITE_TITLE_FORMAT = `%page% - ${SITE_TITLE}`
2421
export const PAGE_DEFAULT_TITLE = "💐"
Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import JSConfetti from "js-confetti"
22

3-
import { lcFirst } from "./lib/lcFirst"
43
import { prefersReducedMotion } from "./lib/prefersReducedMotion"
54
import "./_base"
65

@@ -23,24 +22,3 @@ if (referred) {
2322
}
2423
}
2524
}
26-
27-
const $form = document.querySelector<HTMLFormElement>("form#feedback")
28-
29-
if ($form) {
30-
$form.addEventListener("submit", (e) => {
31-
e.preventDefault()
32-
33-
const values: Record<string, string> = Object.fromEntries(
34-
// @ts-expect-error - `FormData.entries()` exists, see https://developer.mozilla.org/en-US/docs/Web/API/FormData/entries#browser_compatibility
35-
new FormData($form).entries(),
36-
)
37-
38-
const url = `https://twitter.com/intent/tweet?hashtags=${
39-
values.hashtags
40-
}&related=${values.related}&text=${encodeURIComponent(
41-
"Hey @li_hbr, ",
42-
)}${lcFirst(values.feedback)}`
43-
44-
window.open(url, "_blank")?.focus()
45-
})
46-
}

src/components/footer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function footer(): string {
1414
You can support it through <a href="https://github.com/sponsors/lihbr" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's GitHub Sponsors page">GitHub Sponsors</a>
1515
</p>
1616
<p>
17-
Read more and chat with me on <a href="https://bsky.app/profile/lihbr.com" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Bluesky">Bluesky</a>, <a href="https://twitter.com/li_hbr" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Twitter">Twitter</a>, or <a href="https://mastodon.social/@lihbr" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Mastodon">Mastodon</a><br />
17+
Read more and chat with me on <a href="https://bsky.app/profile/lihbr.com" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Bluesky">Bluesky</a>, <a href="https://www.instagram.com/lihbr.png" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Instagram">Instagram</a>, or <a href="https://mastodon.social/@lihbr" target="_blank" rel="noreferrer" class="underline" title="Permalink to Lucie's Mastodon">Mastodon</a><br />
1818
To contact me, here's <a href="mailto:[email protected]" class="underline" title="Write an email to Lucie">a mail</a> and a <a href="/contact" class="underline">contact page</a>.
1919
</p>
2020
<br />

src/files/[slug].ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,7 @@ export const slug = defineAkteFiles<GlobalData, ["slug"]>().from({
6262
const meta = {
6363
title: doc.data.meta_title,
6464
description: doc.data.meta_description,
65-
image: {
66-
openGraph: doc.data.meta_image?.url,
67-
twitter: doc.data.meta_image?.twitter_variant?.url,
68-
},
65+
image: { openGraph: doc.data.meta_image?.url },
6966
}
7067

7168
return page(slot, { path: context.path, ...meta })

src/files/albums/[slug].ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,7 @@ export const slug = defineAkteFiles<GlobalData, ["slugWithHash"]>().from({
117117
const meta = {
118118
title: doc.data.meta_title || `${dateToUSDate(pubDate)} ${title}`,
119119
description: doc.data.meta_description,
120-
image: {
121-
openGraph: metaImage,
122-
twitter: metaImage,
123-
},
120+
image: { openGraph: metaImage },
124121
}
125122

126123
return minimal(slot, {

src/files/contact/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ export const index = defineAkteFile<GlobalData>().from({
2727
Before you jump straight to the form below, please be aware that you can also contact me via the following means and platforms.
2828
</p>
2929
<ul class="list-disc list-inside">
30-
<li>
31-
<a href="mailto:[email protected]" class="lowercase underline">Mail</a>
32-
</li>
3330
<li>
3431
<a href="https://bsky.app/profile/lihbr.com" class="lowercase underline" target="_blank" rel="noreferrer">Bluesky</a>
3532
</li>
3633
<li>
37-
<a href="https://twitter/li_hbr" class="lowercase underline" target="_blank" rel="noreferrer">Twitter</a>
34+
<a href="https://www.instagram.com/lihbr.png" class="lowercase underline" target="_blank" rel="noreferrer">Instagram</a>
3835
</li>
3936
<li>
4037
<a href="https://mastodon.social/@lihbr" class="lowercase underline" target="_blank" rel="noreferrer">Mastodon</a>
4138
</li>
4239
<li>
4340
<a href="https://www.linkedin.com/in/lucie-haberer" class="lowercase underline" target="_blank" rel="noreferrer">LinkedIn</a>
4441
</li>
42+
<li>
43+
<a href="mailto:[email protected]" class="lowercase underline">Mail</a>
44+
</li>
4545
</ul>
4646
</section>`
4747

src/files/posts/[slug].ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,7 @@ export const slug = defineAkteFiles<GlobalData, ["slug"]>().from({
9191
const meta = {
9292
title: post.data.meta_title,
9393
description: post.data.meta_description,
94-
image: {
95-
openGraph: post.data.meta_image?.url,
96-
twitter: post.data.meta_image?.twitter_variant?.url,
97-
},
94+
image: { openGraph: post.data.meta_image?.url },
9895
structuredData: [
9996
{
10097
"@context": "http://schema.org",

src/files/private/[slug].ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,7 @@ export const slug = defineAkteFiles<GlobalData, ["slugWithHash"]>().from({
7171
const meta = {
7272
title: doc.data.meta_title,
7373
description: doc.data.meta_description,
74-
image: {
75-
openGraph: doc.data.meta_image?.url,
76-
twitter: doc.data.meta_image?.twitter_variant?.url,
77-
},
74+
image: { openGraph: doc.data.meta_image?.url },
7875
}
7976

8077
return minimal(slot, { path: context.path, ...meta, noindex: true })

src/files/talks/[conference]/[slug].ts

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,20 @@ export const slug = defineAkteFiles<GlobalData, ["conference", "slug"]>().from({
7373
const feedback = /* html */ `
7474
<section class="section space-y-6">
7575
${heading("Any feedback? Drop me a line~", { as: "h2", class: "heading-2" })}
76-
<form id="feedback" class="form space-y-2" action="https://twitter.com/intent/tweet" method="GET" target="_blank" rel="noreferrer">
77-
<input type="hidden" name="hashtags" value="${talk.feedback.hashtags}">
78-
<input type="hidden" name="related" value="${talk.feedback.related}">
79-
<input type="hidden" name="via" value="${talk.feedback.via}">
80-
<textarea name="feedback" rows="3" class="resize-none" placeholder="Thanks for the talk!" minlength="7" maxlength="260" required aria-label="Your feedback"></textarea>
81-
<button type="submit" class="lowercase"><span class="underline">Send</span> -></button>
82-
</form>
76+
<p>
77+
I'd love to hear your thoughts, whether about my talk or anything else on your mind! You can reach out to me on any of the following platforms.
78+
</p>
79+
<ul class="list-disc list-inside">
80+
<li>
81+
<a href="https://bsky.app/profile/lihbr.com" class="lowercase underline" target="_blank" rel="noreferrer">Bluesky</a>
82+
</li>
83+
<li>
84+
<a href="https://www.instagram.com/lihbr.png" class="lowercase underline" target="_blank" rel="noreferrer">Instagram</a>
85+
</li>
86+
<li>
87+
<a href="https://mastodon.social/@lihbr" class="lowercase underline" target="_blank" rel="noreferrer">Mastodon</a>
88+
</li>
89+
</ul>
8390
</section>`
8491

8592
const meta = {

src/layouts/base.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
SITE_META_IMAGE,
1212
SITE_TITLE,
1313
SITE_TITLE_FORMAT,
14-
SITE_TWITTER_HANDLE,
1514
SITE_URL,
1615
TITLE_LIMIT,
1716
} from "../akte/constants"
@@ -51,7 +50,6 @@ export type BaseArgs = {
5150
description?: string | null
5251
image?: {
5352
openGraph?: string
54-
twitter?: string
5553
}
5654
structuredData?: unknown[]
5755
noindex?: boolean
@@ -72,7 +70,6 @@ export function base(slot: string, args: BaseArgs): string {
7270
)
7371
const image = {
7472
openGraph: args?.image?.openGraph || SITE_META_IMAGE.openGraph,
75-
twitter: args?.image?.twitter || SITE_META_IMAGE.twitter,
7673
}
7774

7875
const structuredData: unknown[] = [
@@ -112,11 +109,6 @@ export function base(slot: string, args: BaseArgs): string {
112109
<meta property="og:image" content="${image.openGraph}">
113110
114111
<meta name="twitter:card" content="summary_large_image">
115-
<meta name="twitter:site" content="@${SITE_TWITTER_HANDLE}">
116-
117-
<meta name="twitter:title" content="${title}">
118-
<meta name="twitter:description" content="${description}">
119-
<meta name="twitter:image" content="${image.twitter}">
120112
121113
<script type="application/ld+json">${JSON.stringify(structuredData)}</script>
122114

0 commit comments

Comments
 (0)