|
1 | 1 | ---
|
2 |
| -import BaseHead from "../components/BaseHead.astro"; |
| 2 | +/* import BaseHead from "../components/BaseHead.astro"; */ |
3 | 3 | import Header from "../components/Header.astro";
|
4 | 4 | import Footer from "../components/Footer.astro";
|
5 | 5 | import { SITE_TITLE, SITE_DESCRIPTION } from "../consts";
|
6 | 6 | import Tawk from "../components/Tawk.astro";
|
7 | 7 | import Analytics from "../components/Analytics.astro";
|
| 8 | +import { SEO } from "astro-seo"; |
| 9 | +import "../styles/styles.css"; |
| 10 | +import heroImage from "../images/hero2.png"; |
| 11 | +import { getImage } from "astro:assets"; |
| 12 | +
|
| 13 | +const fallbackOgImage = await getImage({ |
| 14 | + src: heroImage, |
| 15 | + format: "jpg", |
| 16 | + height: 200, |
| 17 | +}); |
| 18 | +
|
8 | 19 | const {
|
9 | 20 | current,
|
10 | 21 | animateHeader,
|
11 | 22 | withBorder,
|
12 | 23 | withIntercom,
|
13 | 24 | title = SITE_TITLE,
|
14 | 25 | description = SITE_DESCRIPTION,
|
15 |
| - ogImage, |
| 26 | + ogImage = fallbackOgImage, |
16 | 27 | } = Astro.props;
|
17 | 28 | ---
|
18 | 29 |
|
19 | 30 | <!doctype html>
|
20 | 31 | <html lang="en">
|
21 | 32 | <head>
|
22 | 33 | {import.meta.env.PROD && <Analytics />}
|
23 |
| - <BaseHead title={title} description={description} ogImage={ogImage} /> |
| 34 | + <!-- <BaseHead title={title} description={description} ogImage={ogImage} /> --> |
| 35 | + |
| 36 | + <!-- Global Metadata --> |
| 37 | + <meta charset="utf-8" /> |
| 38 | + <meta name="viewport" content="width=device-width,initial-scale=1" /> |
| 39 | + |
| 40 | + <link |
| 41 | + rel="apple-touch-icon" |
| 42 | + sizes="180x180" |
| 43 | + href="/apple-touch-icon.png?" |
| 44 | + /> |
| 45 | + <link |
| 46 | + rel="icon" |
| 47 | + type="image/png" |
| 48 | + sizes="32x32" |
| 49 | + href="/favicon-32x32.png?" |
| 50 | + /> |
| 51 | + <link |
| 52 | + rel="icon" |
| 53 | + type="image/png" |
| 54 | + sizes="16x16" |
| 55 | + href="/favicon-16x16.png?" |
| 56 | + /> |
| 57 | + <link rel="manifest" href="/site.webmanifest" /> |
| 58 | + |
| 59 | + <meta name="generator" content={Astro.generator} /> |
| 60 | + |
| 61 | + <!-- Sitemap --> |
| 62 | + <link rel="sitemap" href="/sitemap-index.xml" /> |
| 63 | + |
| 64 | + <!-- RSS --> |
| 65 | + <link |
| 66 | + rel="alternate" |
| 67 | + type="application/rss+xml" |
| 68 | + title={title} |
| 69 | + href={`${Astro.site}rss.xml`} |
| 70 | + /> |
| 71 | + |
| 72 | + <!-- Font preloads --> |
| 73 | + <link |
| 74 | + rel="preload" |
| 75 | + href="/fonts/atkinson-regular.woff" |
| 76 | + as="font" |
| 77 | + type="font/woff" |
| 78 | + crossorigin |
| 79 | + /> |
| 80 | + <link |
| 81 | + rel="preload" |
| 82 | + href="/fonts/atkinson-bold.woff" |
| 83 | + as="font" |
| 84 | + type="font/woff" |
| 85 | + crossorigin |
| 86 | + /> |
| 87 | + |
| 88 | + <SEO |
| 89 | + title={title} |
| 90 | + description={description} |
| 91 | + openGraph={{ |
| 92 | + basic: { |
| 93 | + title: title, |
| 94 | + type: "website", |
| 95 | + image: new URL(ogImage.src, Astro.url).href, |
| 96 | + url: Astro.url, |
| 97 | + }, |
| 98 | + }} |
| 99 | + twitter={{ |
| 100 | + card: "summary_large_image", |
| 101 | + title: title, |
| 102 | + description: description, |
| 103 | + image: new URL(ogImage.src, Astro.url).href, |
| 104 | + creator: "@RockingML", |
| 105 | + }} |
| 106 | + /> |
24 | 107 | </head>
|
25 | 108 |
|
26 | 109 | <body id="top" class="ss-preload">
|
|
0 commit comments