diff --git a/src/components/ReplyViaEmail.astro b/src/components/ReplyViaEmail.astro index 98fbca7..9ab399f 100644 --- a/src/components/ReplyViaEmail.astro +++ b/src/components/ReplyViaEmail.astro @@ -1,5 +1,4 @@ --- -import {siteConfig} from "../config"; -const { title, email = siteConfig.defaultAuthor.email } = Astro.props; +const { title } = Astro.props; --- -↩ Reply via Email \ No newline at end of file +↩ Reply via Email \ No newline at end of file diff --git a/src/components/helper/head/Meta.astro b/src/components/helper/head/Meta.astro index a790d7b..771fcb4 100644 --- a/src/components/helper/head/Meta.astro +++ b/src/components/helper/head/Meta.astro @@ -1,17 +1,9 @@ --- -interface Props { - title: string; - description: string; - author?: string; - ogImage?: string; -} - -const { title, author,description, ogImage = "" } = Astro.props +const { title, description, ogImage = "" } = Astro.props const canonicalURL = new URL(Astro.url.pathname, Astro.site); --- -{author && } {/* Open Graph / Facebook */} diff --git a/src/config.ts b/src/config.ts index 709cb5d..2d6a2e3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -3,11 +3,6 @@ export const siteConfig = { title: '/var/log/mercury', description: 'A blog about software development, technology, and life.', homepageOgImage: '', - defaultAuthor: { - id: 'd6e4661d', // (optional) an id in the authors.yaml, will override the setting below (if id exists) - name: 'GrassBlock1', - email: 'hi@mercury.info', - }, // features noClientJavaScript: false, // disable client-side javascript, this will: // 1. disable all built-in client-side javascript from rendering @@ -15,6 +10,7 @@ export const siteConfig = { // 3. the comments will be globally disabled // 4. the night mode & back to top will not use Javascript to function // 5. the neko will be force-disabled + authorDefaultEmail: '', // site components navBarItems: [ // additional items in the navbar diff --git a/src/content/config.ts b/src/content/config.ts index d305fc5..c330693 100644 --- a/src/content/config.ts +++ b/src/content/config.ts @@ -3,7 +3,6 @@ import {posts} from './posts/_schemas'; import {pages} from "./pages/_schemas"; import {file} from 'astro/loaders'; import { z } from 'astro:content'; -import {siteConfig} from "../config.ts"; const blogCollection = defineCollection({ type: 'content', @@ -22,21 +21,8 @@ const blogRollData = defineCollection({ }) }); -const authorsData = defineCollection({ - loader: file("src/data/authors.yaml"), - schema: z.object({ - name: z.string().default(siteConfig.defaultAuthor.name), - email: z.string().email().default(siteConfig.defaultAuthor.email), - social: z.object({ - twitter: z.string().optional(), - fediverse: z.string().optional(), - }).optional(), - }) -}); - export const collections = { 'posts': blogCollection, 'pages': pageCollection, 'links': blogRollData, - 'authors': authorsData, }; \ No newline at end of file diff --git a/src/content/posts/_schemas.ts b/src/content/posts/_schemas.ts index bc668d1..e62adfb 100644 --- a/src/content/posts/_schemas.ts +++ b/src/content/posts/_schemas.ts @@ -6,5 +6,4 @@ export const posts = ({ image }) => z.object({ pubDate: z.coerce.date(), updatedDate: z.coerce.date().optional(), cover: image().optional(), - author: z.string().optional(), }); \ No newline at end of file diff --git a/src/content/posts/minimalism/index.md b/src/content/posts/minimalism/index.md index c29b2bd..4ad2c6e 100644 --- a/src/content/posts/minimalism/index.md +++ b/src/content/posts/minimalism/index.md @@ -2,7 +2,6 @@ title: 'The Art of Minimalism' description: 'Thoughts on minimalism in design and code' pubDate: '2025-06-05' -author: 'Wheatley' --- Minimalism isn't just about having less, it's about making room for what matters. diff --git a/src/data/authors.yaml b/src/data/authors.yaml deleted file mode 100644 index 613201f..0000000 --- a/src/data/authors.yaml +++ /dev/null @@ -1,10 +0,0 @@ -Wheatley: # the key name (id) of the author, which is used in the front matter - name: "Wheatley" # the display name of the author - email: "hello@example.org" # the email address of the author - social: # the social media accounts of the author, if any (there is no reference for this yet except for the twitter handle) - twitter: "@wheatley" - fediverse: "@" - -Glados: # you can have more if you like - name: "Glados" - email: "contact@example.org" \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f402f64..6cda7bd 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -12,7 +12,6 @@ import Logo from '../assets/mercury.svg' interface Props { title: string; description: string; - author?: string; path?: string; ogImage?: string; } @@ -30,7 +29,7 @@ const navBarItems = siteConfig.navBarItems const customFooter = siteConfig.customFooter const nekoType = siteConfig.neko?.type -const { title = pageTitle, author = siteConfig.defaultAuthor.name,description = siteConfig.description, ogImage = "" } = Astro.props; +const { title = pageTitle, description = siteConfig.description, ogImage = "" } = Astro.props; --- @@ -40,7 +39,7 @@ const { title = pageTitle, author = siteConfig.defaultAuthor.name,description = - +
Powered by