diff --git a/layouts/partials/breadcrumbs.html b/layouts/partials/breadcrumbs.html index a0dea230cb..4e097f6253 100644 --- a/layouts/partials/breadcrumbs.html +++ b/layouts/partials/breadcrumbs.html @@ -7,7 +7,7 @@ {{- $to = $page }} {{- $lasturl = partial "relLangPrettyUglyURL.hugo" (dict "to" $page) }} {{- end }} -{{- $depth := add 1 (int (partial "get-page-depth.hugo" (dict "page" $page))) }} +{{- $depth := add 1 (int (partial "pageHelper/depth.hugo" (dict "page" $page))) }} {{- if .page.Site.Params.disableRootBreadcrumb }} {{- $depth = add $depth -1 }} {{- end }} diff --git a/layouts/partials/get-page-depth.hugo b/layouts/partials/pageHelper/depth.hugo similarity index 76% rename from layouts/partials/get-page-depth.hugo rename to layouts/partials/pageHelper/depth.hugo index dd0d646eab..228393aeab 100644 --- a/layouts/partials/get-page-depth.hugo +++ b/layouts/partials/pageHelper/depth.hugo @@ -3,7 +3,7 @@ {{- $depth := .depth | default 0 }} {{- with $page.Parent }} {{- $depth = add $depth 1 }} - {{- partial "get-page-depth.hugo" (dict "page" . "depth" $depth) }} + {{- partial "pageHelper/depth.hugo" (dict "page" . "depth" $depth) }} {{- else }} {{- $depth }} {{- end }} \ No newline at end of file