From 16b2b0cdf8b068f5c332cc5e6cbabefba5016040 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 19 Sep 2023 19:37:10 +0100 Subject: [PATCH] remove twitter --- .config/blog.config.ts | 1 - src/components/Donation/Web3.tsx | 2 +- src/components/Footer/Networks.astro | 4 +--- src/components/Footer/Vcard.astro | 6 +++--- src/components/Menu/index.astro | 2 +- src/components/layouts/Base/Head.astro | 3 +-- src/components/layouts/Base/SchemaOrg.astro | 2 +- src/components/layouts/Post/Actions.astro | 2 +- src/components/layouts/Post/Meta.astro | 2 +- src/pages/feed.json.ts | 2 +- src/pages/feed.xml.ts | 2 +- src/pages/manifest.json.ts | 2 +- src/pages/thanks.astro | 2 +- 13 files changed, 14 insertions(+), 18 deletions(-) diff --git a/.config/blog.config.ts b/.config/blog.config.ts index 22d6f5c2c..9cd578d19 100644 --- a/.config/blog.config.ts +++ b/.config/blog.config.ts @@ -6,7 +6,6 @@ export default { name: 'Matthias Kretschmann', email: 'm@kretschmann.io', url: 'https://matthiaskretschmann.com', - twitter: 'https://twitter.com/kremalicious', mastodon: 'https://mas.to/@krema', github: 'https://github.com/kremalicious', bitcoin: '171qDmKEXm9YBgBLXyGjjPvopP5o9htQ1V', diff --git a/src/components/Donation/Web3.tsx b/src/components/Donation/Web3.tsx index b0676b41a..3131ce67f 100644 --- a/src/components/Donation/Web3.tsx +++ b/src/components/Donation/Web3.tsx @@ -1,5 +1,5 @@ import Web3Donation from '@components/Donation/Web3Donation' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import { RainbowKitProvider } from '@rainbow-me/rainbowkit' import { WagmiConfig } from 'wagmi' import { wagmiConfig, chains, theme } from '@lib/rainbowkit' diff --git a/src/components/Footer/Networks.astro b/src/components/Footer/Networks.astro index 24028c8cb..6f7ac89e1 100644 --- a/src/components/Footer/Networks.astro +++ b/src/components/Footer/Networks.astro @@ -1,6 +1,6 @@ --- import styles from './Networks.module.css' -import { Twitter, Rss, Mastodon, Github, Jsonfeed } from '@images/components' +import { Rss, Mastodon, Github, Jsonfeed } from '@images/components' type Props = { links: string[] @@ -15,8 +15,6 @@ const { links } = Astro.props {link.includes('mas.to') ? ( - ) : link.includes('twitter') ? ( - ) : link.includes('github') ? ( ) : link.includes('feed.xml') ? ( diff --git a/src/components/Footer/Vcard.astro b/src/components/Footer/Vcard.astro index 7f83d58c9..6431fcccc 100644 --- a/src/components/Footer/Vcard.astro +++ b/src/components/Footer/Vcard.astro @@ -2,12 +2,12 @@ import { Image } from 'astro:assets' import Networks from './Networks.astro' import avatar from '@images/avatar.jpg' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import styles from './Vcard.module.css' const { author, rss, jsonfeed } = config -const { mastodon, twitter, github, name, url } = author -const links = [mastodon, github, twitter, rss, jsonfeed] +const { mastodon, github, name, url } = author +const links = [mastodon, github, rss, jsonfeed] --- - diff --git a/src/components/layouts/Base/SchemaOrg.astro b/src/components/layouts/Base/SchemaOrg.astro index 6444ddfbf..0c47d5873 100644 --- a/src/components/layouts/Base/SchemaOrg.astro +++ b/src/components/layouts/Base/SchemaOrg.astro @@ -1,5 +1,5 @@ --- -import config from '@config/blog.config.ts' +import config from '@config/blog.config' export type Props = { title: string diff --git a/src/components/layouts/Post/Actions.astro b/src/components/layouts/Post/Actions.astro index a22a77f08..445e43bb5 100644 --- a/src/components/layouts/Post/Actions.astro +++ b/src/components/layouts/Post/Actions.astro @@ -1,5 +1,5 @@ --- -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import styles from './Actions.module.css' import Action from './Action.astro' import { Mastodon, Bitcoin, Github } from '@images/components' diff --git a/src/components/layouts/Post/Meta.astro b/src/components/layouts/Post/Meta.astro index ec525a9b8..519ad5f4e 100644 --- a/src/components/layouts/Post/Meta.astro +++ b/src/components/layouts/Post/Meta.astro @@ -1,7 +1,7 @@ --- import type { CollectionEntry } from 'astro:content' import slugify from '@lib/slugify' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import Tag from '@components/Tag.astro' import styles from './Meta.module.css' import Date from './Date.astro' diff --git a/src/pages/feed.json.ts b/src/pages/feed.json.ts index b5bfb01ad..ca7454db0 100644 --- a/src/pages/feed.json.ts +++ b/src/pages/feed.json.ts @@ -1,5 +1,5 @@ import { getAllPosts } from '@lib/astro' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import type { AstroConfig } from 'astro' import { getFeedContent } from '@lib/feed' import faviconSrc from '@images/favicon.png' diff --git a/src/pages/feed.xml.ts b/src/pages/feed.xml.ts index d77099645..ad773a5c7 100644 --- a/src/pages/feed.xml.ts +++ b/src/pages/feed.xml.ts @@ -1,5 +1,5 @@ import rss from '@astrojs/rss' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import { getAllPosts } from '@lib/astro' import { getFeedContent } from '@lib/feed' import type { AstroConfig } from 'astro' diff --git a/src/pages/manifest.json.ts b/src/pages/manifest.json.ts index c9ad8c9e0..df9a8df30 100644 --- a/src/pages/manifest.json.ts +++ b/src/pages/manifest.json.ts @@ -1,6 +1,6 @@ import type { APIRoute } from 'astro' import { getImage } from 'astro:assets' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import favicon from '@images/favicon.png' const faviconPngSizes = [192, 512] diff --git a/src/pages/thanks.astro b/src/pages/thanks.astro index 7a3a7e109..92826072d 100644 --- a/src/pages/thanks.astro +++ b/src/pages/thanks.astro @@ -2,7 +2,7 @@ import BackButton from '@components/BackButton.astro' import LayoutBase from '@layouts/Base/index.astro' import Web3 from '@components/Donation/Web3' -import config from '@config/blog.config.ts' +import config from '@config/blog.config' import Coin from '@components/Donation/Coin.astro' const coins = Object.entries(config.author).filter(