feat: update template with new elements #1
@ -1,25 +1,28 @@
|
|||||||
---
|
---
|
||||||
export interface Props {
|
export interface Props {
|
||||||
title: string
|
title: string
|
||||||
}
|
}
|
||||||
|
|
||||||
import Favicon from '../components/Favicon/Favicon.astro'
|
import Favicon from '../components/Favicon/Favicon.astro'
|
||||||
import IconSVG from '../assets/layouts/Base/favicon.svg'
|
import IconSVG from '../assets/layouts/Base/favicon.svg'
|
||||||
import IconPNG from '../assets/layouts/Base/favicon.png'
|
import IconPNG from '../assets/layouts/Base/favicon.png'
|
||||||
|
|
||||||
const { title } = Astro.props;
|
const { title } = Astro.props;
|
||||||
---
|
---
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="description" content="Astro description">
|
<meta name="description" content="Astro description">
|
||||||
<meta name="viewport" content="width=device-width" />
|
<meta name="viewport" content="width=device-width" />
|
||||||
<Favicon svg={IconSVG} png={IconPNG} icoPath="/favicon.ico" />
|
<!-- Analytics -->
|
||||||
<title>{title}</title>
|
<script defer data-domain="example.com" src="/js/script.js"></script>
|
||||||
</head>
|
|
||||||
<body class="bg-gray-50">
|
<Favicon svg={IconSVG} png={IconPNG} icoPath="/favicon.ico" />
|
||||||
<slot />
|
<title>{title}</title>
|
||||||
</body>
|
</head>
|
||||||
</html>
|
<body class="bg-gray-50">
|
||||||
|
<slot />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user