diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-22 12:43:22 +0200 |
| commit | 5b476f8905f411768e23cb01d577a60e5a5fd725 (patch) | |
| tree | 0a08cc83d809dbea714f52826e822501ee7c0165 /themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html | |
| parent | 082e9246ffe453031894d32d3cee9d5d1bf2b67a (diff) | |
| download | danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.tar.gz danixxyz-5b476f8905f411768e23cb01d577a60e5a5fd725.zip | |
chore: extract theme into git submodule (danix2-hugo-theme)
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/partials/breadcrumb-jsonld.html | 36 |
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> |
