diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 33f9220..030fcaa 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -16,14 +16,15 @@
@@ -31,7 +32,7 @@
{{ partial "sidebar/switches" (dict "context" $context "disableSidebar" $disableSidebar) }}
-{{- define "partials/sidebar/render-tree" -}}
+{{- define "sidebar-render-tree" -}}
{{- $context := .context -}}
{{- $page := .page -}}
{{- $pageLink := .page.RelPermalink -}}
@@ -39,15 +40,15 @@
{{- $active := eq $pageLink .link -}}
{{- $shouldOpen := or (.open) (hasPrefix $pageLink .link) $active | default true }}
- {{- partial "sidebar/link" (dict "context" . "active" $active "title" .title "link" .link) -}}
+ {{- template "sidebar-item-link" (dict "context" . "active" $active "title" .title "link" .link) -}}
{{- if .section -}}
- {{- partial "sidebar/render-tree-branch" (dict "context" $context "entry" .section "page" $page) -}}
+ {{- template "sidebar-render-tree-branch" (dict "context" $context "entry" .section "page" $page) -}}
{{- end -}}
{{ end }}
{{- end -}}
-{{- define "partials/sidebar/render-tree-branch" -}}
+{{- define "sidebar-render-tree-branch" -}}
{{- $context := .context -}}
{{- $page := .page -}}
{{- $entry := .entry -}}
@@ -59,9 +60,9 @@
{{- $active := eq $pageLink .link -}}
{{- $shouldOpen := or (.open) (hasPrefix $pageLink .link) $active | default true }}
- {{- partial "sidebar/link" (dict "context" . "active" $active "title" .title "link" .link) -}}
+ {{- template "sidebar-item-link" (dict "context" . "active" $active "title" .title "link" .link) -}}
{{- if .section -}}
- {{- partial "sidebar/render-tree-branch" (dict "context" $context "entry" .section "page" $page) -}}
+ {{- template "sidebar-render-tree-branch" (dict "context" $context "entry" .section "page" $page) -}}
{{- end -}}
{{- end -}}
@@ -75,7 +76,7 @@
{{- end -}}
-{{- define "partials/sidebar/link" -}}
+{{- define "sidebar-item-link" -}}
{{- $external := strings.HasPrefix .link "http" -}}