Added portfolio example meta description (#1625)

This commit is contained in:
AsyncBanana 2021-10-25 13:59:53 -04:00 committed by GitHub
parent ae0e7210c7
commit 059aff923b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 5 deletions

View file

@ -1,8 +1,9 @@
---
const { title = 'Jeanine White: Personal Site' } = Astro.props;
const { title = 'Jeanine White: Personal Site', description = 'The personal site of Jeanine White' } = Astro.props;
---
<meta charset="UTF-8">
<meta name="description" property="og:description" content={description}>
<meta name="viewport" content="width=device-width">
<title>{title}</title>

View file

@ -8,7 +8,7 @@ const { content } = Astro.props;
---
<html lang={ content.lang || 'en' }>
<head>
<MainHead title={content.title} />
<MainHead title={content.title} description={content.description} />
<style lang="scss">
.hero {
padding: 8rem;

View file

@ -7,7 +7,7 @@ import Nav from '../components/Nav/index.jsx';
<html lang="en">
<head>
<MainHead title="About | Jeanine White" />
<MainHead title="About | Jeanine White" description="About Jeanine White Lorem Ipsum" />
<style lang="scss">
.heroImg {
object-fit: cover;

View file

@ -15,7 +15,7 @@ const featuredProject = projects[0];
---
<html lang="en">
<head>
<MainHead title="Jeanine White: Personal Site" />
<MainHead title="Jeanine White: Personal Site" description="Jeanine White: Developer, Speaker, and Writer..." />
<style lang="scss">
$w-s: 750px;

View file

@ -15,7 +15,7 @@ const projects = Astro.fetchContent<MarkdownFrontmatter>('./project/**/*.md')
<html lang="en">
<head>
<MainHead title="All Projects | Jeanine White" />
<MainHead title="All Projects | Jeanine White" description="Learn about Jenine White's most recent projects" />
<style lang="scss">
.grid {
display: grid;