diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 55fa132..1f78628 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -51,5 +51,5 @@ {{- template "_internal/google_analytics_async.html" . }} {{- template "partials/templates/opengraph.html" . }} {{- template "partials/templates/twitter_cards.html" . }} -{{- template "partials/templates/schema.html" . }} -{{- end }} \ No newline at end of file +{{- template "partials/templates/schema_json.html" . }} +{{- end }} diff --git a/layouts/partials/templates/schema.html b/layouts/partials/templates/schema.html deleted file mode 100644 index 6c032b6..0000000 --- a/layouts/partials/templates/schema.html +++ /dev/null @@ -1,31 +0,0 @@ - - - -{{- if .IsPage }}{{ $ISO8601 := "2006-01-02T15:04:05-07:00" }}{{ if not .PublishDate.IsZero }} -{{ end }} -{{ if not .Lastmod.IsZero }}{{ end }} - -{{- if .Params.cover.image -}} -{{- if (ne .Params.cover.relative true) }} - -{{- else}} - -{{- end}} -{{- else }} -{{ with $.Params.images }}{{ range first 6 . -}} - -{{ end }}{{ else -}} -{{- $images := $.Resources.ByType "image" -}} -{{- $featured := $images.GetMatch "*feature*" -}} -{{- if not $featured }}{{ $featured = $images.GetMatch "{*cover*,*thumbnail*}" }}{{ end -}} -{{- with $featured -}} - -{{ else -}} -{{- with $.Site.Params.images -}} - -{{ end }}{{ end }}{{ end }} -{{- end }} - - - -{{- end }} diff --git a/layouts/partials/templates/schema_json.html b/layouts/partials/templates/schema_json.html new file mode 100644 index 0000000..a186603 --- /dev/null +++ b/layouts/partials/templates/schema_json.html @@ -0,0 +1,65 @@ +{{ if .IsHome }} + +{{- else if .IsPage }} + +{{ end }}