summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html36
1 files changed, 0 insertions, 36 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html b/themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html
deleted file mode 100644
index 95b5e69..0000000
--- a/themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{{- $homeURL := absURL "/" -}}
-{{- $homeName := i18n "home" -}}
-{{- if eq .Lang "it" -}}
- {{- $homeURL = absURL "/it/" -}}
-{{- end -}}
-<script type="application/ld+json">
-{
- "@context": "https://schema.org",
- "@type": "BreadcrumbList",
- "itemListElement": [
- {
- "@type": "ListItem",
- "position": 1,
- "name": "{{ $homeName }}",
- "item": "{{ $homeURL }}"
- }
- {{- $pos := 1 -}}
- {{- range .Ancestors.Reverse -}}
- {{- if ne .Kind "home" -}}
- {{- $pos = add $pos 1 -}}
- ,{
- "@type": "ListItem",
- "position": {{ $pos }},
- "name": "{{ .Title }}",
- "item": "{{ .Permalink }}"
- }
- {{- end -}}
- {{- end -}}
- ,{
- "@type": "ListItem",
- "position": {{ add $pos 1 }},
- "name": "{{ .Title }}"
- }
- ]
-}
-</script>