fix default title for homepage
This commit is contained in:
parent
f1b6661d6e
commit
5008652d23
1 changed files with 6 additions and 6 deletions
|
@ -4,17 +4,17 @@ export interface Props {
|
|||
description: string | undefined;
|
||||
}
|
||||
const defaultDescription =
|
||||
"Ayo Ayco is a professional software engineer specializing in web development with a decade of experience building web applications for both private businesses and government-funded high-impact projects utilizing web technologies, IoT, data viz/insights, remote sensing, and GIS";
|
||||
"Professional software engineer specializing in web development with a decade of experience building web applications for both private businesses and government-funded high-impact projects utilizing web technologies, IoT, data viz/insights, remote sensing, and GIS";
|
||||
|
||||
const defaultTitle = "Ayo Ayco | Software Engineer, Web Developer, Consultant";
|
||||
|
||||
let { title, description = defaultDescription } = Astro.props;
|
||||
let { title = defaultTitle, description = defaultDescription } = Astro.props;
|
||||
|
||||
const baseURL = "https://ayo.ayco.io";
|
||||
---
|
||||
|
||||
<head>
|
||||
<title>{title || defaultTitle}</title>
|
||||
<title>{title}</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
|
@ -33,16 +33,16 @@ const baseURL = "https://ayo.ayco.io";
|
|||
|
||||
<!-- Open Graph data -->
|
||||
<meta property="og:site_name" content="Ayo Ayco" />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content={baseURL + Astro.url.pathname} />
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content="/ayo.png" />
|
||||
|
||||
<link rel="shortcut icon" type="image/png" href="/favicon.ico" />
|
||||
|
||||
{
|
||||
title ? (
|
||||
title !== defaultTitle ? (
|
||||
<script>
|
||||
const title = document.title; if(title){" "}
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ const baseURL = "https://ayo.ayco.io";
|
|||
}
|
||||
</script>
|
||||
) : (
|
||||
<meta />
|
||||
<meta />
|
||||
)
|
||||
}
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue