fix jsx and import
This commit is contained in:
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
import { ClientRouter } from 'astro:transitions';
|
import { ClientRouter } from 'astro:transitions';
|
||||||
import { BASE_PATH } from 'astro:env/server';
|
import { BASE_PATH } from 'astro:env/server';
|
||||||
import logo512 from '../assets/img/logo-512.png';
|
import logo512 from '@assets/img/logo-512.webp';
|
||||||
import favicon from '../assets/favicon.png';
|
import favicon from '@assets/favicon.png';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
title: string;
|
title: string;
|
||||||
@ -23,12 +23,16 @@ const { title, description, keywords, openGraph, viewTransition } = Astro.props;
|
|||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<link rel="icon" type="image/png" href={favicon.src} />
|
<link rel="icon" type="image/png" href={favicon.src} />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
{openGraph && (
|
{
|
||||||
<meta name="og:title" content={title} />
|
openGraph && (
|
||||||
<meta property="og:url" content={Astro.url.pathname} />
|
<>
|
||||||
<meta property="og:type" content="website" />
|
<meta name="og:title" content={title} />
|
||||||
<meta property="og:image" content={logo512.src} />
|
<meta property="og:url" content={Astro.url.pathname} />
|
||||||
)}
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:image" content={logo512.src} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
{keywords && <meta name="keywords" content={keywords.join(', ')} />}
|
{keywords && <meta name="keywords" content={keywords.join(', ')} />}
|
||||||
<base href=`${BASE_PATH}/` />
|
<base href=`${BASE_PATH}/` />
|
||||||
|
Reference in New Issue
Block a user