From 91a72e7a7827e9b77c7aca306c04c5ede78857d5 Mon Sep 17 00:00:00 2001 From: Domini Montessori Date: Wed, 9 Sep 2026 07:07:20 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20Blog=20schema=20=E2=80=94=20pr?= =?UTF-8?q?oper=20BlogPosting=20objects,=20fix=20Hugo=20eq()=20with=203=20?= =?UTF-8?q?args?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - eq() in Hugo takes exactly 2 args; replaced with or(eq eq eq) - blogPost array now contains BlogPosting objects (headline + url) instead of bare strings - numberOfItems uses len without redundant int cast --- layouts/partials/schema.html | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/layouts/partials/schema.html b/layouts/partials/schema.html index 072eb3b6..38d734b0 100644 --- a/layouts/partials/schema.html +++ b/layouts/partials/schema.html @@ -15,6 +15,48 @@ } } +{{ else if and (or (eq .Kind "section") (eq .Kind "taxonomy") (eq .Kind "term")) (eq .Section "blog") }} + +{{ else if eq .Section "knowledge-graph" }} + {{ else }} {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} {{- /* Resolve the author: first `authors` front matter key looked up in data/authors/, else the site author. */ -}}