From 4e638c1074ba43e6ffc14016fc45fd2b3c0a8e27 Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Fri, 18 Oct 2024 11:01:12 +0800 Subject: [PATCH] feat: add the JSON-LD schema. --- src/layouts/BaseLayout.astro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro index 73eec7e..9109d0d 100644 --- a/src/layouts/BaseLayout.astro +++ b/src/layouts/BaseLayout.astro @@ -12,6 +12,7 @@ import Header from '@/components/header/Header.astro'; import PageMeta from '@/components/meta/PageMeta.astro'; import SearchDialog from '@/components/search/SearchDialog.astro'; import options from '@/options'; +import { urlJoin } from '@/helpers/tools'; interface Props { title?: string; @@ -47,6 +48,26 @@ const description = Astro.props.description || options.description; +