From 8ee57a7ff5476464df465009ebf93fb9f5e79243 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Sat, 22 Jul 2023 15:45:51 +0600 Subject: [PATCH] update header and breadcrumb --- layouts/partials/components/breadcrumb.html | 3 +- layouts/partials/essentials/header.html | 42 ++++++++++----------- package.json | 2 +- 3 files changed, 23 insertions(+), 24 deletions(-) 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": {