diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index e45de8e..9a0a0ef 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -10,9 +10,10 @@ href="{{ $base | relLangURL }}"> {{ i18n "home" | default "Home" }} + / {{ range $i, $e:= $context.Ancestors.Reverse }} - {{ if ne .Title "Pages" }} + {{ if and (not .IsHome) (ne .Title "Pages") }}
  • @@ -68,17 +65,18 @@ + href="{{- if findRE `^#` .URL -}} + {{- if not $.IsHome -}} + {{- site.BaseURL | relLangURL -}} + {{- end }} + {{- .URL -}} + {{- else -}} + {{- .URL | relLangURL -}} + {{- end -}}"> {{ .Name }}
  • @@ -88,17 +86,17 @@ {{ else }} diff --git a/package.json b/package.json index 3f03cc2..e05d4a8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hugoplate", "description": "hugo tailwindcss boilerplate", - "version": "1.6.0", + "version": "1.6.1", "license": "MIT", "author": "zeon.studio", "scripts": {