X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fbreadcrumbs.html;h=b7faeb378cf6c5cfcd3ddb3169e1cc1f3a30674f;hb=26ee5f4dbc5cde34e98565bae169e995ecc13781;hp=fd8cc6bdfc18aff40df2dfb6b7131ae482c5609a;hpb=d862564bc2609461aad794ae1e26b5db875f8eee;p=theme-danix.xyz.git diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index fd8cc6b..b7faeb3 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -1,28 +1,31 @@ -
    - {{- /* declare a 'variable' to store the each link position */}} - {{- $data := newScratch }} - - {{- range $index, $value := .Ancestors.Reverse }} -
  1. - {{- /* read the index from loop and add 'one', because it starts counting from zero */}} - {{- $data.Set "counter" $index }} - {{- $data.Add "counter" 1 }} - - {{ if .IsHome }} - home - {{ else }} +
  2. +
+ \ No newline at end of file