Fix mismatched props in www (#1574)

This commit is contained in:
Caleb Jasik 2021-10-18 12:40:22 -05:00 committed by GitHub
parent 90618131cc
commit a788a876f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
---
export interface Props {
title: string;
title?: string;
type?: 'tip' | 'warning' | 'error'
}
const { type = 'tip', title } = Astro.props;

View file

@ -13,7 +13,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} image="https://astro.build/assets/blog/astro-repl/astro-repl-social.jpg" />
<BaseHead title={title} description={description} canonicalURL={permalink} image="https://astro.build/assets/blog/astro-repl/astro-repl-social.jpg" />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
</head>

View file

@ -11,7 +11,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<BaseHead title={title} description={description} canonicalURL={permalink} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
<style>

View file

@ -18,7 +18,7 @@ let lang = 'en';
<html lang={ lang ?? 'en' }>
<head>
<BaseHead title={title} description={description} permalink={permalink} />
<BaseHead title={title} description={description} canonicalURL={permalink} />
<link rel="stylesheet" href={Astro.resolve('../../scss/blog.css')} />
</head>