Files
HugoBlox-kit/layouts/partials/jsonld/main.html
T
George Cushen bd2e4ec418 feat: add JSONLD schema for organizations
Forms part of the transition from Microdata to JSON-LD.

BREAKING CHANGES

Upgrades to your `params.toml` file are required:

- Address field has been split into semantic parts
- Latitude and longitude have moved under `coordinates` option
- Map settings have moved under `[map]` section
- Office hours can now be specified more simply, as a list
- Added optional `list_delimiter` option for formatting addresses

See #413
2019-09-11 13:18:49 +01:00

24 lines
629 B
HTML

{{ $page := .page }}
{{ $summary := .summary }}
{{ $site_type := site.Params.site_type | default "Person" }}
{{- if $page.IsHome -}}
{{ partial "jsonld/website.html" $page }}
{{ if ne $site_type "Person" }}
{{ partial "jsonld/business.html" $page }}
{{ end }}
{{- else if $page.IsPage -}}
{{ if (eq $page.Type "post") | or (eq $page.Type "publication") | or (eq $page.Type "project") }}
{{ partial "jsonld/article.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{ if eq $page.Type "talk" }}
{{ partial "jsonld/event.html" (dict "page" $page "summary" $summary) }}
{{ end }}
{{- end }}