mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-06-02 23:59:51 -04:00
use Parent's Permalink for breadcrumb nav
This commit is contained in:
parent
e03348c041
commit
65f84d6f19
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
|||
<header class="post-header">
|
||||
{{- if (.Param "ShowBreadCrumbs")}}
|
||||
<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) "" }}
|
||||
|
||||
<a href="{{ "" | absLangURL }}">{{ i18n "home" | default "Home"}}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue