main.html 650 B

1234567891011121314151617181920212223
  1. {{ $page := .page }}
  2. {{ $summary := .summary }}
  3. {{ $site_type := site.Params.marketing.seo.site_type | default "Person" }}
  4. {{- if $page.IsHome -}}
  5. {{ partialCached "jsonld/website.html" $page }}
  6. {{ if ne $site_type "Person" }}
  7. {{ partial "jsonld/business.html" $page }}
  8. {{ end }}
  9. {{- else if $page.IsPage -}}
  10. {{ if (eq $page.Type "post") | or (eq $page.Type "publication") | or (eq $page.Type "project") }}
  11. {{ partial "jsonld/article.html" (dict "page" $page "summary" $summary) }}
  12. {{ end }}
  13. {{ if eq $page.Type "event" }}
  14. {{ partial "jsonld/event.html" (dict "page" $page "summary" $summary) }}
  15. {{ end }}
  16. {{- end }}