From 7696114ecdd46a3498257c69e57ed38d48b50f08 Mon Sep 17 00:00:00 2001 From: Mark Dumay <61946753+markdumay@users.noreply.github.com> Date: Sat, 4 Apr 2026 09:06:18 +0200 Subject: [PATCH] fix: correct field names and structure in LLM markdown templates Use correct bookshop field names (title/description instead of question/answer) in faq.hugo.md. Render each card as a level-3 heading in cards.hugo.md so multi-line content (nested lists, paragraphs) stays associated with its card title. Co-Authored-By: Claude Sonnet 4.6 --- component-library/components/cards/cards.hugo.md | 5 ++++- component-library/components/faq/faq.hugo.md | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/component-library/components/cards/cards.hugo.md b/component-library/components/cards/cards.hugo.md index a7bb815..0354857 100644 --- a/component-library/components/cards/cards.hugo.md +++ b/component-library/components/cards/cards.hugo.md @@ -1,5 +1,8 @@ {{ range .elements -}} -- **{{ with .link }}[{{ end }}{{ .title }}{{ with .link }}]({{ . }}){{ end }}**: {{ or .content .description }} +### {{ with .link }}[{{ end }}{{ .title }}{{ with .link }}]({{ . }}){{ end }} + +{{ or .content .description }} + {{ end -}} {{ with .links -}} {{ i18n "llm-links" }}:{{ range . }} [{{ .title }}]({{ .url }}){{ end }} diff --git a/component-library/components/faq/faq.hugo.md b/component-library/components/faq/faq.hugo.md index cb795eb..2f38388 100644 --- a/component-library/components/faq/faq.hugo.md +++ b/component-library/components/faq/faq.hugo.md @@ -1,6 +1,6 @@ {{ range .items -}} -**{{ .question }}** +**{{ .title }}** -{{ .answer }} +{{ .description }} {{ end -}}