diff --git a/public/img/bt-console-ogp.png b/public/img/bt-console-ogp.png new file mode 100644 index 0000000..5deab9f Binary files /dev/null and b/public/img/bt-console-ogp.png differ diff --git a/public/img/default.png b/public/img/default.png new file mode 100644 index 0000000..c68fe55 Binary files /dev/null and b/public/img/default.png differ diff --git a/src/content/blog/bluetooth-pairing-while-dual-booting.mdx b/src/content/blog/bluetooth-pairing-while-dual-booting.mdx index ce354eb..47c36fb 100644 --- a/src/content/blog/bluetooth-pairing-while-dual-booting.mdx +++ b/src/content/blog/bluetooth-pairing-while-dual-booting.mdx @@ -3,6 +3,7 @@ title: "Bluetooth Pairing While Dual Booting" pubDate: 2024-01-31 19:43:59 -0600 tags: ["dual boot", "bluetooth", "registry", "windows", "linux"] description: "When both your Windows and Linux machine use the same MAC address, it requires a special trick to maintain pairing on both installations" +preview_image: "/img/bt-console-ogp.png" --- import { Image } from 'astro:assets'; diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index af9e157..59f8c91 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -2,10 +2,13 @@ import "@styles/global.scss"; import "@styles/fonts.scss"; import { ViewTransitions } from "astro:transitions"; +import { SEO, type Props as SEOProps } from "astro-seo"; +import OpenGraphArticleTags from "node_modules/astro-seo/src/components/OpenGraphArticleTags.astro"; interface Props { title?: string; build_revision?: string; + ogp?: SEOProps; } const { title: titleProp, build_revision } = Astro.props; @@ -13,6 +16,77 @@ const title = titleProp != undefined ? `${titleProp} | undefined.behavio.rs` : "undefined.behavio.rs"; +const linkedData = { + "@context": "https://schema.org", + "@graph": [ + { + "@type": "WebSite", + "@id": "https://undefined.behavio.rs/#website", + url: "https://undefined.behavio.rs", + name: "undefined behaviors", + publisher: { "@id": "https://undefined.behavio.rs/#organization" }, + inLanguage: "en-US" + }, + // { + // "@type": "ImageObject", + // "@id": "https://undefined.behavio.rs/wp-content/uploads/2020/07/calendar-month-view-previous-past-months-1024x682.png", + // url: "https://undefined.behavio.rs/wp-content/uploads/2020/07/calendar-month-view-previous-past-months-1024x682.png", + // width: "200", + // height: "200", + // inLanguage: "en-US" + // }, + { + "@type": "WebPage", + "@id": Astro.props.ogp?.canonical, + url: Astro.props.ogp?.canonical, + name: {title}, + // datePublished: "2020-07-21T07:47:00-07:00", + // dateModified: "2020-09-07T10:59:21-07:00", + isPartOf: { "@id": "https://undefined.behavio.rs/#website" }, + // primaryImageOfPage: { + // "@id": "https://undefined.behavio.rs/wp-content/uploads/2020/07/calendar-month-view-previous-past-months-1024x682.png" + // }, + inLanguage: "en-US" + }, + { + "@type": "Person", + "@id": "https://xevion.dev", + name: "Ryan Walters", + url: "https://xevion.dev", + image: { + "@type": "ImageObject", + // "@id": "https://secure.gravatar.com/avatar/13d11a314fe4096840a13b4ae4eb1796?s=96&d=retro&r=pg", + // url: "https://secure.gravatar.com/avatar/13d11a314fe4096840a13b4ae4eb1796?s=96&d=retro&r=pg", + caption: "Ryan Walters", + inLanguage: "en-US" + }, + worksFor: { "@id": "https://undefined.behavio.rs/#organization" } + }, + { + "@type": "BlogPosting", + headline: title, + datePublished: "2020-07-21T07:47:00-07:00", + dateModified: "2020-09-07T10:59:21-07:00", + author: { "@id": "https://xevion.dev" }, + // publisher: { "@id": "https://undefined.behavio.rs/#organization" }, + description: Astro.props.ogp?.description, + name: title, + // "@id": "https://undefined.behavio.rs/how-to-make-a-monthly-calendar-with-real-data/#richSnippet", + isPartOf: { + // "@id": "https://undefined.behavio.rs/how-to-make-a-monthly-calendar-with-real-data/#webpage" + }, + image: { + // "@id": "https://undefined.behavio.rs/wp-content/uploads/2020/07/calendar-month-view-previous-past-months-1024x682.png" + }, + inLanguage: "en-US", + mainEntityOfPage: { + // "@id": "https://undefined.behavio.rs/how-to-make-a-monthly-calendar-with-real-data/#webpage" + } + } + ] +} + +const linkedDataTag = "" --- @@ -22,6 +96,8 @@ const title = {title} + + diff --git a/src/layouts/General.astro b/src/layouts/General.astro index 2a1218a..31c1a17 100644 --- a/src/layouts/General.astro +++ b/src/layouts/General.astro @@ -1,6 +1,7 @@ --- import Base from "@layouts/Base.astro"; import Header from "@components/Header.astro"; +import type { Props as SEOProps } from "astro-seo"; const repository_url = `https://github.com/${ import.meta.env.PUBLIC_VERCEL_GIT_REPO_OWNER @@ -9,12 +10,13 @@ const build_revision = import.meta.env.PUBLIC_VERCEL_GIT_COMMIT_SHA; interface Props { title?: string; + ogp?: SEOProps } -const { title } = Astro.props; +const { title, ogp } = Astro.props; --- - +