{{- if not .sc.Site.Data.itemtypes -}} {{- errorf "Can't access site context in partial (%q)" .pc.File.Path -}} {{- end -}} {{- if not .items -}} {{- warnf "No items passed to list partial (%q)" .pc.File.Path -}} {{- end -}} {{- if ( and .schemaType ( not ( in .sc.Site.Data.itemtypes .schemaType ) ) ) -}} {{- erroridf "invalid-schemaType" "Invalid Schema.org type value %q (%q)" .schemaType .pc.File.Path -}} {{- end -}} {{- if ( and .listType ( not ( in ( slice "unordered" "ordered" ) .listType ) ) ) -}} {{- erroridf "invalid-listType" "Invalid list type value %q (%q)" .listType .pc.File.Path -}} {{- end -}} {{- $schemaType := default "" .schemaType -}} {{- $listType := default "unordered" .listType -}} {{- if ( eq $listType "unordered" ) -}}