From 2f5e771072821508b48dc0a91f32d216f1b599a0 Mon Sep 17 00:00:00 2001 From: Lars Olesen Date: Sun, 5 May 2024 11:35:22 +0200 Subject: [PATCH] Split schema to a separate include file (#3085) * Make changes to schema easier * Only show on one page not on all pages * Move schema.html to _includes/ and move the URL guard out --------- Co-authored-by: iBug --- _includes/schema.html | 16 ++++++++++++++++ _includes/seo.html | 18 +++--------------- 2 files changed, 19 insertions(+), 15 deletions(-) create mode 100644 _includes/schema.html diff --git a/_includes/schema.html b/_includes/schema.html new file mode 100644 index 00000000..f264f6c2 --- /dev/null +++ b/_includes/schema.html @@ -0,0 +1,16 @@ + diff --git a/_includes/seo.html b/_includes/seo.html index c9d01e94..0141042b 100644 --- a/_includes/seo.html +++ b/_includes/seo.html @@ -121,21 +121,9 @@ {% endif %} - +{% if page.url == '/' %} + {% include schema.html %} +{% endif %} {% if site.google_site_verification %}