Closed hollowaykeanho closed 1 year ago
Please provide a short description of what you have encountered below.
LD+JSON Breadcrumb generated a bunch of bad values for WebPage type. It's a bug
WebPage
Please specify the expected behavior of your usage below.
Patch this in its function:
{{- /* prepare breadcrumb as WebPage has such a field */ -}} {{- $breadcrumb = dict -}} {{- if len $Page.Nav.Parents -}} {{- $breadcrumb = slice -}} {{- range $i, $v := $Page.Nav.Parents -}} {{- $breadcrumb = append (dict "@type" "ListItem" "item" (dict "@type" "Thing" "name" $v.Titles.Page "url" (string $v.URL.Current.Absolute) ) "position" (add 1 (int $i)) ) $breadcrumb -}} {{- end -}} {{- $breadcrumb = dict "@type" "BreadcrumbList" "itemListElement" $breadcrumb "itemListOrder" "Ascending" "numberOfItems" (len $Page.Nav.Parents) -}} {{- end -}}
Please specify the current behavior of software below.
Please specify all the steps required to re-produce the problem.
Please drag and drop the necessary data files (e.g. screenshot, logs, etc) below.
=p
Implemented in e9afe87b66a4898ed7f821376e9358984aaf6890
Released in v1.2.1.
Description
LD+JSON Breadcrumb generated a bunch of bad values for
WebPage
type. It's a bugExpected Behavior
Patch this in its function:
Current Behavior
Steps to Reproduce (COMPULSORY)
Attachments