7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-12-28 14:46:09 +00:00
web-ansol.org/themes/academic/layouts/partials/jsonld/main.html
2020-06-11 12:46:16 +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 }}