use Parent's Permalink for breadcrumb nav

This commit is contained in:
Aditya Telange 2021-02-08 20:21:26 +05:30
parent e03348c041
commit 65f84d6f19
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<header class="post-header"> <header class="post-header">
{{- if (.Param "ShowBreadCrumbs")}} {{- if (.Param "ShowBreadCrumbs")}}
<div class="breadcrumbs"> <div class="breadcrumbs">
{{- $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }} {{- $url := replace .Parent.Permalink ( printf "%s" .Site.BaseURL) "" }}
{{- $lang_url := replace $url ( printf "%s" .Lang) "" }} {{- $lang_url := replace $url ( printf "%s" .Lang) "" }}
<a href="{{ "" | absLangURL }}">{{ i18n "home" | default "Home"}}</a> <a href="{{ "" | absLangURL }}">{{ i18n "home" | default "Home"}}</a>