From 7c99b084a14af6d9d5aa8806d8a40c51491bb71a Mon Sep 17 00:00:00 2001
From: sudoer777
Date: Tue, 30 May 2023 18:48:54 -0500
Subject: [PATCH] Add astro-seo
---
package.json | 5 +++--
pnpm-lock.yaml | 7 +++++++
src/env.d.ts | 1 +
src/layouts/Base.astro | 5 ++++-
src/layouts/properties/Head.astro | 12 +-----------
5 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/package.json b/package.json
index 808ac4a..5658dbd 100644
--- a/package.json
+++ b/package.json
@@ -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"
}
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aec0018..19a62b2 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -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'}
diff --git a/src/env.d.ts b/src/env.d.ts
index f964fe0..acef35f 100644
--- a/src/env.d.ts
+++ b/src/env.d.ts
@@ -1 +1,2 @@
+///
///
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
index d878f8f..6ae7f27 100644
--- a/src/layouts/Base.astro
+++ b/src/layouts/Base.astro
@@ -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
-
+
+
+
diff --git a/src/layouts/properties/Head.astro b/src/layouts/properties/Head.astro
index 0bb2110..dd84e89 100644
--- a/src/layouts/properties/Head.astro
+++ b/src/layouts/properties/Head.astro
@@ -1,18 +1,8 @@
----
-export interface Props {
- title: string
- description: string
-}
-
-const { title, description } = Astro.props
----
-
+
-
- {title}