{{- $homeURL := absURL "/" -}}
{{- $articlesURL := absURL "/articles/" -}}
{{- $homeName := i18n "home" -}}
{{- $articlesName := i18n "articles" -}}
{{- if eq .Lang "it" -}}
  {{- $homeURL = absURL "/it/" -}}
  {{- $articlesURL = absURL "/it/articles/" -}}
{{- end -}}
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "{{ $homeName }}",
      "item": "{{ $homeURL }}"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "{{ $articlesName }}",
      "item": "{{ $articlesURL }}"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "{{ .Title }}"
    }
  ]
}
</script>
