<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": 
  [          
  {% assign crumbs = page.url | remove:'/index.html' | split: '/' %}
  {% for crumb in crumbs offset: 1 %}
    {
      "@type": "ListItem",
      "position": {{ forloop.index }},
      "item": {
        "@id": "{{ site.url }}{{ page.url }}",
        {% assign words = crumb | remove:'.html' | split: '-'  %}
        {% capture titlecase %}{% for word in words %}{{ word | capitalize }} {% endfor %}{% endcapture %}
        "name": "{{ titlecase }}"
      }
    }{% unless forloop.last %},{% endunless %}       
  {% endfor %}
  ]
}
</script>