mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
breadcrumb: use .LinkTitle instead of .Title if available #816
This commit is contained in:
parent
93578d810d
commit
b88ccc2304
4 changed files with 9 additions and 1 deletions
|
@ -18,6 +18,12 @@ This document shows you what's new in the latest release and flags it with one o
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 5.27.0.beta (XXXX-XX-XX) {#5270}
|
||||||
|
|
||||||
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The breadcrumbs used in the topbar, search results and the taxonomy term lists are now using the pages frontmatter `linktitle` instead of `title` if set.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## 5.26.0 (2024-03-18) {#5260}
|
## 5.26.0 (2024-03-18) {#5260}
|
||||||
|
|
||||||
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The lazy loading of images is now configurable by using the new `lazy` [image effect](cont/imageeffects). The default value hasn't changed in comparison to older versions, you don't need to change anything.
|
- {{% badge style="info" icon="plus-circle" title=" " %}}New{{% /badge %}} The lazy loading of images is now configurable by using the new `lazy` [image effect](cont/imageeffects). The default value hasn't changed in comparison to older versions, you don't need to change anything.
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
+++
|
+++
|
||||||
|
linktitle = "Multilingual"
|
||||||
title = "Multilingual and i18n"
|
title = "Multilingual and i18n"
|
||||||
weight = 7
|
weight = 7
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
+++
|
+++
|
||||||
|
linktitle = "Multilingual"
|
||||||
title = "Multilingual an' i18n"
|
title = "Multilingual an' i18n"
|
||||||
weight = 7
|
weight = 7
|
||||||
+++
|
+++
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
{{- range $i, $e := $breadcrumbReversed }}
|
{{- range $i, $e := $breadcrumbReversed }}
|
||||||
{{- $to := $e }}
|
{{- $to := $e }}
|
||||||
{{- $depth = add $depth 1 }}
|
{{- $depth = add $depth 1 }}
|
||||||
{{- $title := $to.Title }}
|
{{- $title := or $to.Params.menuTitle $to.LinkTitle $to.Title }}
|
||||||
{{- if eq $to.Kind "taxonomy" }}
|
{{- if eq $to.Kind "taxonomy" }}
|
||||||
{{- $title = default (default $to.Data.Plural (i18n $to.Data.Plural)) $to.Params.Title }}
|
{{- $title = default (default $to.Data.Plural (i18n $to.Data.Plural)) $to.Params.Title }}
|
||||||
{{- else if eq $to.Kind "term" }}
|
{{- else if eq $to.Kind "term" }}
|
||||||
|
|
Loading…
Reference in a new issue