2021-11-01 01:15:28 +00:00
|
|
|
{{- $page := .page -}}
|
|
|
|
{{- $summary := .summary -}}
|
|
|
|
{{- $site_type := site.Params.site_type | default "Person" -}}
|
2020-06-11 11:46:16 +00:00
|
|
|
{{- if $page.IsHome -}}
|
2021-11-01 01:15:28 +00:00
|
|
|
{{- partial "jsonld/website.html" $page -}}
|
|
|
|
{{- if ne $site_type "Person" -}}
|
|
|
|
{{- partial "jsonld/business.html" $page -}}
|
|
|
|
{{- end -}}
|
2020-06-11 11:46:16 +00:00
|
|
|
{{- 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 }}
|
2021-11-01 01:15:28 +00:00
|
|
|
{{- end -}}
|