From dfad1ec43b34f84ddcee2b94ea2641fe0d798a6c Mon Sep 17 00:00:00 2001
From: weru <onewesh@gmail.com>
Date: Wed, 05 Feb 2020 19:12:28 +0000
Subject: [PATCH] save work

---
 layouts/partials/sidebar.html |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html
index 96fcd99..6030409 100644
--- a/layouts/partials/sidebar.html
+++ b/layouts/partials/sidebar.html
@@ -1,20 +1,20 @@
 <aside class="aside">
   {{- template "tree" (dict "page" . "section" .FirstSection)  }}
   {{- define "tree" }}
-  {{- $s := .section }}
-  {{- $p := .page }}
-  {{- $permalink := $p.RelPermalink }}
+  {{- $section := .section }}
+  {{- $page := .page }}
+  {{- $permalink := $page.RelPermalink }}
   <section class="section">
-    <h2 class="section_title{{ if eq $s.RelPermalink $permalink }} active{{ end }}"><a  href="{{ $s.RelPermalink }}" class="group">{{ $s.Title }}</a></h2>
-      {{- $pages := $s.Pages }}
+    <h2 class="section_title{{ if eq $section.RelPermalink $permalink }} active{{ end }}"><a  href="{{ $section.Permalink }}" class="group">{{ $section.Title }}</a></h2>
+      {{- $pages := $section.Pages }}
       {{- with $pages }}
-      <section class="" id="docs-{{ anchorize $s.Title }}">
+      <section class="" id="docs-{{ anchorize $section.Title }}">
         {{- range . }}
         {{- if .IsPage }}
-        <h3 class="section_link{{ if eq .RelPermalink $permalink }} active{{ end }}"><a id="docs-{{ anchorize .Title }}" href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
+        <h3 class="section_link{{ if eq .RelPermalink $permalink }} active{{ end }}"><a id="docs-{{ anchorize .Title }}" href="{{ .Permalink }}">{{ .Title }}</a></h3>
         {{- .TableOfContents }}
         {{- else }}
-        {{- template "tree" (dict "page" $p "section" .) }}
+        {{- template "tree" (dict "page" $page "section" .) }}
         {{- end }}
         {{- end }}
       </section>

--
Gitblit v1.10.0