Skip to content

Commit

Permalink
Check if schema.org home templates exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cmahnke committed Jan 3, 2025
1 parent 66a5955 commit 0c558e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/data/schema.org.html
Original file line number Diff line number Diff line change
@@ -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 -}}
Expand Down

0 comments on commit 0c558e8

Please sign in to comment.