Add website meta

This commit is contained in:
Leafy :3 2024-12-15 01:30:41 +01:00
parent 3b15090df2
commit 8337a74d5f
2 changed files with 29 additions and 24 deletions

BIN
public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -1,43 +1,48 @@
---
interface Props {
title: string;
title: string;
}
const { title } = Astro.props;
import "@/assets/global.css"
import "@/assets/global.css";
import "@fontsource/poppins/400.css";
import "@fontsource/poppins/500.css";
import "@fontsource/poppins/600.css";
import "@fontsource/poppins/700.css";
import { ClientRouter } from 'astro:transitions';
import { ClientRouter } from "astro:transitions";
import Logo from "@/assets/img/logo.svg"
import Logo from "@/assets/img/logo.svg";
import Navbar from "@/components/Navbar.tsx";
---
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href={Logo.src} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
<ClientRouter/>
</head>
<body>
<Navbar client:load />
<slot />
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href={Logo.src} />
<meta name="generator" content={Astro.generator} />
<meta content="yiffing.dev" property="og:title" />
<meta content="by furries, for furries :#" property="og:description" />
<meta content="https://yiffing.dev" property="og:url" />
<meta content="https://yiffing.dev/logo.png" property="og:image" />
<meta content="#cba6f7" name="theme-color" />
<title>{title}</title>
<ClientRouter />
</head>
<body>
<Navbar client:load />
<slot />
</body>
</html>
<style>
html,
body {
margin: 0;
width: 100%;
height: 100%;
max-width: 95%;
margin: auto;
}
html,
body {
margin: 0;
width: 100%;
height: 100%;
max-width: 95%;
margin: auto;
}
</style>