From 0c558e8f08ac2516eb48842217bd88e88be23e41 Mon Sep 17 00:00:00 2001 From: Christian Mahnke Date: Fri, 3 Jan 2025 17:53:45 +0100 Subject: [PATCH] Check if schema.org home templates exists --- layouts/partials/data/schema.org.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/data/schema.org.html b/layouts/partials/data/schema.org.html index c16cd0bca8..b799901a5e 100644 --- a/layouts/partials/data/schema.org.html +++ b/layouts/partials/data/schema.org.html @@ -1,6 +1,6 @@ {{- $debug := partialCached "partials/functions/debug/enabled.html" . -}} -{{- if .IsHome -}} +{{- if and .IsHome (templates.Exists "partials/schema.org/home.html") -}} {{- partial "schema.org/home.html" . -}} {{- else -}} {{- $schemaTemplate := printf "schema.org/%s.html" .Kind -}}