aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/layouts/partials/sidemenu.html
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-02-22 20:48:17 +1300
committerGitHub <noreply@github.com>2018-02-22 20:48:17 +1300
commit443409e32bcc28a7f0475d7af42efff03473b72f (patch)
tree9d749a57929a950f0e177a9bf4d6cd7d9a88c16b /docs/src/layouts/partials/sidemenu.html
parent1cacefa104626e4e0df5ffb2aa8b0c6f16b615b2 (diff)
parent982508d30f887b4fe8b2a855792ae1e33f378222 (diff)
downloadmitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.tar.gz
mitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.tar.bz2
mitmproxy-443409e32bcc28a7f0475d7af42efff03473b72f.zip
Merge pull request #2890 from mitmproxy/newdocs
All new documentation
Diffstat (limited to 'docs/src/layouts/partials/sidemenu.html')
-rw-r--r--docs/src/layouts/partials/sidemenu.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/src/layouts/partials/sidemenu.html b/docs/src/layouts/partials/sidemenu.html
new file mode 100644
index 00000000..035cc59e
--- /dev/null
+++ b/docs/src/layouts/partials/sidemenu.html
@@ -0,0 +1,11 @@
+<ul class="menu-list">
+ {{$menu := (index .ctx.Site.Menus .menuname) }}
+ {{ $currentPage := .ctx }}
+ {{ $menuname := .menuname }}
+ {{ range $menu.ByWeight }}
+ <li >
+ <a class="{{ if $currentPage.IsMenuCurrent $menuname . }}is-active{{ end }}"
+ href="{{.URL}}">{{ .Name }}</a>
+ </li>
+ {{end}}
+</ul> \ No newline at end of file