From beca04f2712ff17a84023843812b402522677946 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Sat, 1 Apr 2023 11:39:51 +0200 Subject: [PATCH] feat: add schema org --- src/components/HeadSEO.astro | 4 +++- src/config.ts | 27 +++++++++++++++++++-------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/components/HeadSEO.astro b/src/components/HeadSEO.astro index 9df05c1..5a27d60 100644 --- a/src/components/HeadSEO.astro +++ b/src/components/HeadSEO.astro @@ -11,7 +11,6 @@ import { SITE, OPEN_GRAPH } from "../config"; - @@ -27,3 +26,6 @@ import { SITE, OPEN_GRAPH } from "../config"; + + diff --git a/src/config.ts b/src/config.ts index 5f27026..bdd5039 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,11 +1,3 @@ -export const SITE = { - title: "Hyro's Links", - description: - "Hyro's Links is a website that contains links to my social media accounts and other useful links.", - url: "https://links.xhyrom.me", - themeColor: "#fbc119", -}; - export const OPEN_GRAPH = { image: { src: "og_image.png", @@ -56,3 +48,22 @@ export const BUTTONS = [ href: "https://reddit.com/u/xHyroM", }, ]; + +export const SITE = { + title: "Hyro's Links", + description: + "Hyro's Links is a website that contains links to my social media accounts and other useful links.", + url: "https://links.xhyrom.me", + themeColor: "#fbc119", + schema: { + "@context": "https://schema.org/", + "@type": "ItemList", + name: "Redirects", + itemListElement: BUTTONS.map((button, i) => ({ + "@type": "ListItem", + position: i + 1, + name: button.name, + url: button.href, + })), + }, +};