From 0a1edd7e8e6a5081e81464efe0447ebcbcf5ff3c Mon Sep 17 00:00:00 2001 From: Cbrnex <31788262+7rs@users.noreply.github.com> Date: Sat, 13 Jan 2024 21:14:37 +0900 Subject: [PATCH 1/8] Improved loading resource files --- package.json | 2 +- src/components/Profile.astro | 2 +- src/layouts/Layout.astro | 19 +++++++++++++------ src/layouts/Meta.astro | 6 +++--- src/pages/index.astro | 2 +- 5 files changed, 19 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index a97036e..71fc98c 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@7rs/pages", "description": "Fast and simple website.", "type": "module", - "version": "0.2.1", + "version": "0.2.2", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/src/components/Profile.astro b/src/components/Profile.astro index 7404dc1..15fed7b 100644 --- a/src/components/Profile.astro +++ b/src/components/Profile.astro @@ -13,7 +13,7 @@ const { image, formats = [], alt = "pfp", name } = Astro.props;
- +

{name}

diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 89cdefb..75d4809 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -43,9 +43,10 @@ export interface Props { title: string; schemaMarkup?: string; frontmatter?: Frontmatter; + programmingFonts?: boolean; } -const { title, schemaMarkup, frontmatter, ...props } = Astro.props; +const { title, schemaMarkup, frontmatter, programmingFonts = false, ...props } = Astro.props; const author = { "@type": "Person", @@ -75,11 +76,17 @@ const defaultSchemaMarkup = JSON.stringify( - - -