From 029409826a873a10a2f984c7a85326dc146d116c Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 21 Jun 2023 15:34:33 +0200 Subject: [PATCH] Verdere opmaak van gestructureerde data, aanbrengen onderscheid tussen webpagina's en profielpagina's, markeren content die uitgesproken kan worden --- themes/nluug/layouts/_default/baseof.html | 8 +- themes/nluug/layouts/partials/footer.html | 1 + .../schemas/include-relevant-schemas.html | 7 +- .../partials/schemas/schema_Person.html | 86 +++++++++++-------- .../partials/schemas/schema_WebPage.html | 25 ++++++ .../partials/schemas/schema_WebSite.html | 17 +--- 6 files changed, 89 insertions(+), 55 deletions(-) create mode 100644 themes/nluug/layouts/partials/schemas/schema_WebPage.html diff --git a/themes/nluug/layouts/_default/baseof.html b/themes/nluug/layouts/_default/baseof.html index 0cd153a..3504927 100644 --- a/themes/nluug/layouts/_default/baseof.html +++ b/themes/nluug/layouts/_default/baseof.html @@ -5,13 +5,15 @@
+ {{ partialCached "header.html" . }} + {{ partial "breadcrumb.html" . }}
- {{ partialCached "header.html" . }} - {{ partial "breadcrumb.html" . }} -

{{ .Title }}

+

{{ .Title }}

+
{{- block "main" . }} {{ .Content }} {{- end }} +
{{ partial "show-call-to-action.html" . }} diff --git a/themes/nluug/layouts/partials/footer.html b/themes/nluug/layouts/partials/footer.html index b76743b..ba3decf 100644 --- a/themes/nluug/layouts/partials/footer.html +++ b/themes/nluug/layouts/partials/footer.html @@ -53,6 +53,7 @@
  • BundleType = {{ .BundleType }}
  • IsPage = {{ .IsPage }}
  • IsSection = {{ .IsSection }}
  • +
  • Content types = {{ .Params.content_types }}
  • {{ end }} diff --git a/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html b/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html index feb8847..0c583df 100644 --- a/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html +++ b/themes/nluug/layouts/partials/schemas/include-relevant-schemas.html @@ -2,13 +2,16 @@ {{ partial "schemas/schema_Organization.html" . }} {{ partial "schemas/schema_WebSite.html" . }} + {{ partial "schemas/schema_WebPage.html" . }} {{- else if .IsPage -}} - {{ partial "schemas/schema_BreadcrumbList.html" . }} - {{ if in .Params.content_types "person" }} {{ partial "schemas/schema_Person.html" . }} + {{ else }} + {{ partial "schemas/schema_WebPage.html" . }} {{ end }} {{ end }} + +{{ partial "schemas/schema_BreadcrumbList.html" . }} diff --git a/themes/nluug/layouts/partials/schemas/schema_Person.html b/themes/nluug/layouts/partials/schemas/schema_Person.html index 2104220..6bd6b3f 100644 --- a/themes/nluug/layouts/partials/schemas/schema_Person.html +++ b/themes/nluug/layouts/partials/schemas/schema_Person.html @@ -1,42 +1,56 @@ -{{ if .Params.slug }} -{{ $author := index .Site.Data.personen .Params.slug }} +{{ $author := index .Site.Data.personen (substr $.File.LogicalName 0 -3) }} {{ $location := index .Site.Data.location .Site.Params.primarylocation }} -{{ end }} diff --git a/themes/nluug/layouts/partials/schemas/schema_WebPage.html b/themes/nluug/layouts/partials/schemas/schema_WebPage.html new file mode 100644 index 0000000..58e8164 --- /dev/null +++ b/themes/nluug/layouts/partials/schemas/schema_WebPage.html @@ -0,0 +1,25 @@ + diff --git a/themes/nluug/layouts/partials/schemas/schema_WebSite.html b/themes/nluug/layouts/partials/schemas/schema_WebSite.html index e300a07..3d3e54e 100644 --- a/themes/nluug/layouts/partials/schemas/schema_WebSite.html +++ b/themes/nluug/layouts/partials/schemas/schema_WebSite.html @@ -4,27 +4,16 @@