mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-19 03:10:24 +00:00
theme: wildspace #647
This commit is contained in:
parent
09ad8299e7
commit
7665c8a261
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
{{- $page := .page }}
|
{{- $page := .page }}
|
||||||
{{- $depth := .depth | default 0 }}
|
{{- $depth := .depth | default 0 }}
|
||||||
{{- with $page.Parent }}
|
{{- with $page.Parent }}
|
||||||
{{- $depth = add $depth 1 }}
|
{{- $depth = add $depth 1 }}
|
||||||
{{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }}
|
{{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
{{- $depth }}
|
{{- $depth }}
|
||||||
{{- end }}
|
{{- end }}
|
Loading…
Reference in a new issue