@thg-altitude/schemaorg 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thg-altitude/schemaorg",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -9,17 +9,13 @@ let itemListElement = []
9
9
  Astro.props.breadcrumbs?.forEach((item,index) => {
10
10
  itemListElement.push({
11
11
  "@type": "ListItem",
12
- "position": index + 1,
13
- "item" : {
14
- "@type": "Thing",
15
- "@id" : item?.pagePath?.includes("p/") || item?.displayName === "Home" ? `${url}${item?.pagePath}` : `${url}/c${item?.pagePath}`,
16
- "name" : item?.displayName
17
- }
12
+ "position": index,
13
+ "name": item?.displayName
14
+ "item" : item?.pagePath?.includes("p/") || item?.displayName === "Home" ? `${url}${item?.pagePath}` : `${url}/c${item?.pagePath}`,
18
15
  })
19
16
  })
20
17
 
21
18
  let schema = {
22
- "@context": "https://schema.org",
23
19
  "@type": "BreadcrumbList",
24
20
  "itemListElement": itemListElement
25
21
  };
@@ -9,7 +9,8 @@ let schema = {
9
9
  "@type":"Organization",
10
10
  "@context": "https://schema.org",
11
11
  "name": Astro.props.name,
12
- "sameAs": socialLinkArray
12
+ "sameAs": socialLinkArray,
13
+ "logo": Astro.props.logo
13
14
  };
14
15
 
15
16
  ---
@@ -8,6 +8,18 @@ let schema = {
8
8
  "@type":"WebSite",
9
9
  "@context": "https://schema.org",
10
10
  "url": url,
11
+ "potentialAction":{
12
+ "@type":"SearchAction",
13
+ "target":{
14
+ "@type":"EntryPoint",
15
+ "urlTemplate":`${url}/search/?q={search}`
16
+ },
17
+ "query-input":{
18
+ "@type":"PropertyValueSpecification",
19
+ "valueRequired":"http://schema.org/True",
20
+ "valueName":"search"
21
+ }
22
+ }
11
23
  };
12
24
  ---
13
25