Add astro-seo
parent
7b406fb8a1
commit
7c99b084a1
|
@ -12,6 +12,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/tailwind": "^3.1.3",
|
||||
"astro": "^2.5.5",
|
||||
"astro-seo": "^0.7.2",
|
||||
"tailwindcss": "^3.3.2",
|
||||
"tailwindcss-hero-patterns": "^0.1.2"
|
||||
},
|
||||
|
@ -26,7 +27,7 @@
|
|||
"eslint-plugin-tailwindcss": "^3.12.0",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-astro": "^0.9.1",
|
||||
"prettier-plugin-tailwindcss": "^0.3.0",
|
||||
"prettier-plugin-sort-imports": "^1.7.2"
|
||||
"prettier-plugin-sort-imports": "^1.7.2",
|
||||
"prettier-plugin-tailwindcss": "^0.3.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,6 +11,9 @@ dependencies:
|
|||
astro:
|
||||
specifier: ^2.5.5
|
||||
version: 2.5.5
|
||||
astro-seo:
|
||||
specifier: ^0.7.2
|
||||
version: 0.7.2
|
||||
tailwindcss:
|
||||
specifier: ^3.3.2
|
||||
version: 3.3.2
|
||||
|
@ -1069,6 +1072,10 @@ packages:
|
|||
- supports-color
|
||||
dev: true
|
||||
|
||||
/astro-seo@0.7.2:
|
||||
resolution: {integrity: sha512-YnSqj4E6vbF7wRk3gcxOPHBjenhfgaINEJlTsnu4sovAyfyGEdQksbioYKoZ+vERRDaYvEricfSzC6fc9lieww==}
|
||||
dev: false
|
||||
|
||||
/astro@2.5.5:
|
||||
resolution: {integrity: sha512-VRwnlfRtPALeOxfE4e7To5Vlu9pGwlTRWN1zkn1QTizwfg0rLirFTm6t2MCG/fUhlu/p3QO9tz8SpAIyDq53/Q==}
|
||||
engines: {node: '>=16.12.0', npm: '>=6.14.0'}
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
/// <reference path="../.astro/types.d.ts" />
|
||||
/// <reference types="astro/client" />
|
||||
|
|
|
@ -3,6 +3,7 @@ import Background from './properties/Background.astro'
|
|||
import Font from './properties/Font.astro'
|
||||
import Head from './properties/Head.astro'
|
||||
import Navbar from '../components/content/global/Navbar.astro'
|
||||
import { SEO } from 'astro-seo'
|
||||
|
||||
export interface Props {
|
||||
title: string
|
||||
|
@ -14,7 +15,9 @@ const { title, description } = Astro.props
|
|||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<Head title={title} description={description} />
|
||||
<Head title={title} description={description}>
|
||||
<SEO title={title} description={description} />
|
||||
</Head>
|
||||
<body class="min-h-screen w-screen">
|
||||
<Font>
|
||||
<Background>
|
||||
|
|
|
@ -1,18 +1,8 @@
|
|||
---
|
||||
export interface Props {
|
||||
title: string
|
||||
description: string
|
||||
}
|
||||
|
||||
const { title, description } = Astro.props
|
||||
---
|
||||
|
||||
<head>
|
||||
<slot />
|
||||
<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} />
|
||||
<link rel="stylesheet" href="/fonts/fonts.css" />
|
||||
<title>{title}</title>
|
||||
</head>
|
||||
|
|
Reference in New Issue