Skip to content

Commit 8fde0b6

Browse files
committed
Don't show X in author profiles
1 parent 61e0f31 commit 8fde0b6

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ migrate: ## Migrate Blogger posts
7373
content-new-author: ## Create a new author (ID=author-id NAME="Author Name")
7474
@if [ -z "$(ID)" ] || [ -z "$(NAME)" ]; then \
7575
echo "Usage: make content-new-author ID=author-id NAME=\"Author Name\""; exit 1; fi
76-
@echo '{"name":"$(NAME)","bio":"","github":"","avatar":"","twitter":"","bluesky":"","mastodon":"","website":"","featured":false}' \
76+
@echo '{"name":"$(NAME)","bio":"","github":"","avatar":"","bluesky":"","mastodon":"","website":"","featured":false}' \
7777
| python3 -m json.tool > content/authors/$(ID).json
7878
@echo "Created content/authors/$(ID).json"
7979

keystatic.config.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export default config({
109109
bio: fields.text({ label: "Bio", multiline: true }),
110110
github: fields.text({ label: "GitHub Username" }),
111111
avatar: fields.url({ label: "Avatar URL" }),
112-
twitter: fields.url({ label: "Twitter/X" }),
113112
bluesky: fields.url({ label: "Bluesky" }),
114113
mastodon: fields.url({ label: "Mastodon" }),
115114
website: fields.url({ label: "Website" }),

src/content.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const authors = defineCollection({
2222
bio: z.string().optional(),
2323
github: z.string().optional(),
2424
avatar: z.string().optional(),
25-
twitter: z.string().optional(),
2625
bluesky: z.string().optional(),
2726
mastodon: z.string().optional(),
2827
website: z.string().optional(),

src/pages/authors/[author].astro

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,6 @@ const avatarUrl = author.avatar || (author.github ? `https://github.com/${author
9999
{author.github}
100100
</a>
101101
)}
102-
{author.twitter && (
103-
<a href={author.twitter} class="inline-flex items-center gap-1 text-xs text-zinc-500 transition-colors hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200" target="_blank" rel="noopener noreferrer">
104-
<svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
105-
Twitter
106-
</a>
107-
)}
108102
{author.bluesky && (
109103
<a href={`https://bsky.app/profile/${author.bluesky}`} class="inline-flex items-center gap-1 text-xs text-zinc-500 transition-colors hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-zinc-200" target="_blank" rel="noopener noreferrer">
110104
<svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="currentColor"><path d="M12 10.8c-1.087-2.114-4.046-6.053-6.798-7.995C2.566.944 1.561 1.266.902 1.565.139 1.908 0 3.08 0 3.768c0 .69.378 5.65.624 6.479.785 2.627 3.588 3.476 6.182 3.21-4.024.564-7.545 2.254-2.88 7.543 5.528 5.283 7.435-1.36 8.074-3.953.639 2.593 1.9 9.108 8.073 3.953 4.665-5.289 1.145-6.979-2.88-7.543 2.595.267 5.398-.583 6.183-3.21.245-.83.624-5.789.624-6.479 0-.688-.139-1.86-.902-2.203-.659-.3-1.664-.62-4.3 1.24C16.046 4.748 13.087 8.687 12 10.8z"/></svg>

0 commit comments

Comments
 (0)