diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 9bf6277..e9f0211 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -35,6 +35,7 @@ {{ template "_internal/opengraph.html" . }} {{ template "_internal/twitter_cards.html" . }} {{ template "partials/favicons.html" . }} + {{ template "partials/site_schema.html" . }} +{ + "@context": "http://schema.org", + "@type": "WebSite", + "name": "{{ .Site.Title }}", + "url": "{{ .Site.BaseURL }}", + "description": "{{ .Site.Params.description }}", + {{ with .Site.Params.favicons.icon32 }}"thumbnailUrl": "{{ . | absURL }}",{{ end }} + "license": "{{ .Site.Copyright }}" +} + +{{ else if .IsPage }} + {{ $author := or (.Params.author) (.Site.Author.name) }} + {{ $org_name := .Site.Title }} +{{ end }}