Files
George Cushen f4280ddb1c refactor: rename modules and update migration docs
BREAKING CHANGE
Module paths moved to `github.com/HugoBlox/kit` with new names:
- core `blox-tailwind` → `blox`
- analytics → `analytics`
- netlify → `integrations/netlify`
- slides (reveal) → `slides`
Update go.mod, module.yaml/params, scripts, tests, and v0.11 migration guide accordingly.
2026-01-02 20:59:48 +00:00

49 lines
1.5 KiB
HTML

{{ $page := .page }}
{{ $summary := .summary }}
{{ $site_type := site.Params.hugoblox.identity.type | humanize | default "Person" }}
{{- if $page.IsHome -}}
{{ partialCached "jsonld/website.html" $page }}
{{ if ne $site_type "Person" }}
{{ partial "jsonld/business.html" $page }}
{{ end }}
{{- else if $page.IsPage -}}
{{ if (eq $page.Type "blog") | or (eq $page.Type "publications") | or (eq $page.Type "projects") }}
{{ partial "jsonld/article.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{ if eq $page.Type "events" }}
{{ partial "jsonld/event.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{/* Q&A Page - individual question/answer page */}}
{{ if eq $page.Type "questions" }}
{{ partial "jsonld/qapage.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{/* FAQ Page type */}}
{{ if eq $page.Type "faq" }}
{{ partial "jsonld/faqpage.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{ partial "jsonld/webpage.html" (dict "page" $page "summary" $summary) }}
{{- else -}}
{{ partial "jsonld/collectionpage.html" (dict "page" $page "summary" $summary) }}
{{- end }}
{{ if not $page.IsHome }}
{{ partial "jsonld/breadcrumbs.html" (dict "page" $page) }}
{{ end }}
{{/* FAQ content - can appear on any page type including landing pages and homepage */}}
{{ if or ($page.Params.faq_page) ($page.Params.faqs) }}
{{ partial "jsonld/faqpage.html" (dict "page" $page "summary" $summary) }}
{{ end }}