From 7665c8a261c9e3f06d8cbdbc413cfeb50c5be362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 23 Sep 2023 23:28:31 +0200 Subject: [PATCH] theme: wildspace #647 --- layouts/partials/get-page-depth.hugo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/get-page-depth.hugo b/layouts/partials/get-page-depth.hugo index 488e766e5c..dd0d646eab 100644 --- a/layouts/partials/get-page-depth.hugo +++ b/layouts/partials/get-page-depth.hugo @@ -2,8 +2,8 @@ {{- $page := .page }} {{- $depth := .depth | default 0 }} {{- with $page.Parent }} - {{- $depth = add $depth 1 }} - {{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }} + {{- $depth = add $depth 1 }} + {{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }} {{- else }} {{- $depth }} {{- end }} \ No newline at end of file