MCPcopy
hub / github.com/vinta/awesome-python / build_breadcrumb_json_ld

Function build_breadcrumb_json_ld

website/build.py:201–213  ·  view source on GitHub ↗
(items: Sequence[tuple[str, str]])

Source from the content-addressed store, hash-verified

199
200
201def build_breadcrumb_json_ld(items: Sequence[tuple[str, str]]) -> dict:
202 return {
203 "@type": "BreadcrumbList",
204 "itemListElement": [
205 {
206 "@type": "ListItem",
207 "position": i,
208 "name": name,
209 "item": url,
210 }
211 for i, (name, url) in enumerate(items, start=1)
212 ],
213 }
214
215
216def build_category_json_ld(

Callers 2

build_category_json_ldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected