mirror of
https://github.com/Kyren223/website.git
synced 2025-12-28 08:54:37 +00:00
Added some extra metadata to the website
This commit is contained in:
24
src/components/Head.astro
Normal file
24
src/components/Head.astro
Normal file
@@ -0,0 +1,24 @@
|
||||
---
|
||||
interface Props {
|
||||
title: string;
|
||||
description: string;
|
||||
}
|
||||
|
||||
const { title, description } = Astro.props;
|
||||
---
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
|
||||
<meta property="og:title" content={title} />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://kyren.codes/" />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta property="og:image" content="https://kyren.codes/favicon.svg">
|
||||
<meta property="og:image:alt" content="">
|
||||
</head>
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import Markdown from "@components/Markdown.astro";
|
||||
import Head from "@components/Head.astro";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
@@ -10,14 +11,7 @@ const { title } = Astro.props;
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
<Head title={title} description={title} />
|
||||
<body>
|
||||
<main class="w-[70%] m-auto py-16">
|
||||
<Markdown>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
import "@styles/terminal.css";
|
||||
import Nav from "@components/Nav.astro";
|
||||
import Head from "@components/Head.astro";
|
||||
|
||||
interface Props {
|
||||
path: string;
|
||||
@@ -11,14 +12,7 @@ const { path: title } = Astro.props;
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<title>/home/kyren/{title}</title>
|
||||
</head>
|
||||
<Head title=`/home/kyren/${title}` description="My personal website" />
|
||||
<body>
|
||||
<main>
|
||||
<Nav path={title} />
|
||||
|
||||
Reference in New Issue
Block a user