From 50f2f0444fc675ce9fae408183fa715c86580804 Mon Sep 17 00:00:00 2001 From: somrat sorkar Date: Thu, 6 Jul 2023 12:28:18 +0600 Subject: [PATCH] update breadcrumb --- exampleSite/config/_default/hugo.toml | 2 +- layouts/partials/components/breadcrumb.html | 46 ++++++++------------- package.json | 2 +- 3 files changed, 20 insertions(+), 30 deletions(-) diff --git a/exampleSite/config/_default/hugo.toml b/exampleSite/config/_default/hugo.toml index 33a4daf..434511b 100755 --- a/exampleSite/config/_default/hugo.toml +++ b/exampleSite/config/_default/hugo.toml @@ -1,5 +1,5 @@ ######################## default configuration #################### -baseURL = "https://hugoplate.netlify.app/" +baseURL = "https://hugoplate.netlify.app/site/" title = "Hugoplate" theme = "hugoplate" # Default time zone for time stamps; use any valid tz database name: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List diff --git a/layouts/partials/components/breadcrumb.html b/layouts/partials/components/breadcrumb.html index 7bcd3cd..8e34dca 100644 --- a/layouts/partials/components/breadcrumb.html +++ b/layouts/partials/components/breadcrumb.html @@ -1,41 +1,31 @@ {{ $context := .Context }} {{ $class := .Class }} {{ $base := site.BaseURL }} -{{ $pageLink := replace $context.Permalink $base "" }} -{{ $lang := $context.Lang }} -{{ $context.Scratch.Set "path" "/" }} -