From 213bcbe93751bf535bce48d1b3ec25efef36b7b8 Mon Sep 17 00:00:00 2001 From: Ivaylo Ivanov Date: Wed, 19 Feb 2025 11:40:09 +0100 Subject: [PATCH] Add schema or generation --- layouts/partials/head.html | 1 + layouts/partials/schema.html | 64 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 layouts/partials/schema.html diff --git a/layouts/partials/head.html b/layouts/partials/head.html index aae386f..6f87c95 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,6 +19,7 @@ name="description" content="{{ if .Params.description }}{{ .Params.description }}{{ end }}" /> + {{ partial "schema.html" . }} diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html new file mode 100644 index 0000000..d4bc0a5 --- /dev/null +++ b/layouts/partials/schema.html @@ -0,0 +1,64 @@ +{{ if .IsHome -}} + +{{ else if .IsPage }} +{{ $author := or (.Params.author) (.Site.Author.name) }} +{{ $org_name := .Site.Title }} + +{{ end }} +