diff --git a/layouts/partials/header/breadcrumbs.html b/layouts/partials/header/breadcrumbs.html
index 21f94aa0e9342cdb93f20ace7537e81dfd91dea5..756de5f76b3df253a15d4a65abae11a9db51a9ec 100644
--- a/layouts/partials/header/breadcrumbs.html
+++ b/layouts/partials/header/breadcrumbs.html
@@ -8,7 +8,7 @@
                   "p2" . 
                   "path" $path 
                   "position" $length
-                ) }}
+                ) -}}
   </ol>
 </nav>
 
@@ -47,13 +47,13 @@
     {{- end -}}
     {{- $title = chomp $title }}
     <li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" class="breadcrumb-item{{- if .active }} active{{ end }}"{{- if .active }} aria-current="page"{{ end }}>
-      {{ if not .active -}}
+      {{- if not .active -}}
         <a itemprop="item" href="{{ .page.Permalink }}">
-      {{- end }}
+      {{- end -}}
         <span itemprop="name">{{- partial "PrepareHTML" $title -}}</span>
-      {{ if not .active -}}
+      {{- if not .active -}}
         </a>
-      {{- end }}
+      {{- end -}}
       <meta itemprop="position" content="{{- .position -}}">
     </li>
   {{- end -}}