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