feat: remove hardcoded descriptions
This commit is contained in:
@@ -11,13 +11,11 @@ import Education from '@components/ui/sections/Education.astro';
|
||||
import portraitImg from '@images/portrait.avif';
|
||||
|
||||
const global = await directus.request(readSingleton('site_global'));
|
||||
|
||||
const description = 'About me.';
|
||||
---
|
||||
|
||||
<BaseLayout
|
||||
title="About Me"
|
||||
description={description}
|
||||
description="About me."
|
||||
structuredData={{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebPage',
|
||||
@@ -25,7 +23,7 @@ const description = 'About me.';
|
||||
'@id': Astro.url.href,
|
||||
url: Astro.url.href,
|
||||
name: `About | ${global.name}`,
|
||||
description: description,
|
||||
description: 'About me.',
|
||||
isPartOf: {
|
||||
'@type': 'WebSite',
|
||||
url: global.site_url,
|
||||
|
||||
@@ -10,14 +10,11 @@ import HeroSectionAlt from '@components/ui/sections/HeroSectionAlt.astro';
|
||||
import homeImg from '@images/autumn_mountain.png';
|
||||
|
||||
const global = await directus.request(readSingleton('site_global'));
|
||||
|
||||
const description =
|
||||
'Engineering the cloud by day, homelab by night, and exploring Minnesota in between.';
|
||||
---
|
||||
|
||||
<BaseLayout
|
||||
title="Home"
|
||||
description={description}
|
||||
description={global.about_description}
|
||||
structuredData={{
|
||||
'@context': 'https://schema.org',
|
||||
'@type': 'WebPage',
|
||||
@@ -25,7 +22,7 @@ const description =
|
||||
'@id': Astro.url.href,
|
||||
url: Astro.url.href,
|
||||
name: `Home | ${global.name}`,
|
||||
description: description,
|
||||
description: global.about_description,
|
||||
isPartOf: {
|
||||
'@type': 'WebSite',
|
||||
url: global.site_url,
|
||||
@@ -36,7 +33,7 @@ const description =
|
||||
>
|
||||
<HeroSection
|
||||
title={`Hello, I'm <span class="text-steel dark:text-steel">Alex Lebens</span>`}
|
||||
subTitle={description}
|
||||
subTitle={global.about_description}
|
||||
primaryBtn="About Me"
|
||||
primaryBtnURL="/about"
|
||||
src={homeImg}
|
||||
|
||||
Reference in New Issue
Block a user