From cc980732a1e22fd779e3593333d7a62a7719d5be Mon Sep 17 00:00:00 2001 From: Alexis Date: Tue, 10 Jun 2025 13:42:50 +0200 Subject: [PATCH] Moved favicon to own file --- src/layouts/HeadFavicon.astro | 31 +++++++++++++++++++ src/layouts/Layout.astro | 57 ++++++++++------------------------- 2 files changed, 47 insertions(+), 41 deletions(-) create mode 100644 src/layouts/HeadFavicon.astro diff --git a/src/layouts/HeadFavicon.astro b/src/layouts/HeadFavicon.astro new file mode 100644 index 0000000..f0f13c9 --- /dev/null +++ b/src/layouts/HeadFavicon.astro @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index 20b8297..bc74ec4 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,7 +1,8 @@ --- -import '../../assets/css/main.css'; -import BgParticles from '../components/BgParticles.astro'; -import BgGrid from '../components/BgGrid.astro'; +import '../../assets/css/main.css' +import BgParticles from '../components/BgParticles.astro' +import BgGrid from '../components/BgGrid.astro' +import HeadFavicon from './HeadFavicon.astro' interface Props { title?: string @@ -10,12 +11,16 @@ interface Props { hasGrid?: boolean } -const { title = "Home", hasParticles = true, hasGrid = true } = Astro.props; +const { title = "Home", hasParticles = true, hasGrid = true } = Astro.props const baseTitle = 'Alexis Pelé' const renderedTitle = `${title} · ${baseTitle}` -const { description = baseTitle } = Astro.props; +const { description = baseTitle } = Astro.props + +const authorName = "Alexis Pelé" +const authorUsername = "AlexisNP" +const websiteDomain = "alexcreates.fr" --- @@ -33,50 +38,20 @@ const { description = baseTitle } = Astro.props; - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + +