diff --git a/package.json b/package.json index 4de2eb4..4b24c18 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "astro": "^1.6.0", "astro-feather-icons": "^1.0.2", "astro-icon": "^0.8.0", + "astro-seo": "^0.6.0", "tailwindcss": "^3.0.24" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2b90b0e..3a6638b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,6 +12,7 @@ specifiers: astro: ^1.6.0 astro-feather-icons: ^1.0.2 astro-icon: ^0.8.0 + astro-seo: ^0.6.0 tailwindcss: ^3.0.24 dependencies: @@ -25,6 +26,7 @@ dependencies: astro: 1.6.2 astro-feather-icons: 1.0.2 astro-icon: 0.8.0 + astro-seo: 0.6.0 tailwindcss: 3.2.1 devDependencies: @@ -897,6 +899,10 @@ packages: svgo: 2.8.0 dev: false + /astro-seo/0.6.0: + resolution: {integrity: sha512-nR+dJlAyQhX6s0oAmbBqPq3KCZax/zVAerFsclGiJQ2znOkS/7L+RGjziS4M9Q3OQxm3FMfqIKHp9Ns73Q81ww==} + dev: false + /astro/1.6.2: resolution: {integrity: sha512-UHbzQ3Q7iU2a0XBY6Dzh/Hksoa7svmkWZ3ABRGgSOT765GXIGZkErgeNAsjsBW7RsTUKVLqVxD2LK3NzZL5EKA==} engines: {node: ^14.18.0 || >=16.12.0, npm: '>=6.14.0'} diff --git a/public/opengraph.jpg b/public/opengraph.jpg new file mode 100644 index 0000000..9d69468 Binary files /dev/null and b/public/opengraph.jpg differ diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index ea3ad0d..c3f15d5 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,5 +1,5 @@ --- -// import { getImage } from "@astrojs/image"; +import { SEO } from "astro-seo"; import Footer from "@components/footer.astro"; import Navbar from "@components/navbar/navbar.astro"; import "@fontsource/inter/variable.css"; @@ -14,7 +14,7 @@ export interface Props { // format: "avif", // }); // console.log(src); - +const resolvedImageWithDomain = new URL("/opengraph.jpg", Astro.url).toString(); const { title } = Astro.props; --- @@ -27,7 +27,22 @@ const { title } = Astro.props; - {title} {title && "|"} Astro Ship + diff --git a/src/pages/contact.astro b/src/pages/contact.astro index 0906655..5c9baab 100644 --- a/src/pages/contact.astro +++ b/src/pages/contact.astro @@ -7,7 +7,7 @@ import Button from "@components/ui/button.astro"; import Contactform from "@components/contactform.astro"; --- - + Contact diff --git a/src/pages/pricing.astro b/src/pages/pricing.astro index 7227658..14f7cab 100644 --- a/src/pages/pricing.astro +++ b/src/pages/pricing.astro @@ -64,7 +64,7 @@ const pricing = [ ]; --- - + Pricing