From 6d47b7f3462562866b1d6004fb94b66c5d6ff038 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Sun, 31 Jul 2022 01:00:29 +0200 Subject: Core cleanup --- layouts/partials/sidebar-toc.html | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/layouts/partials/sidebar-toc.html b/layouts/partials/sidebar-toc.html index a6ac8d3..1a39494 100644 --- a/layouts/partials/sidebar-toc.html +++ b/layouts/partials/sidebar-toc.html @@ -8,21 +8,17 @@ {{ $toc := .Page.TableOfContents }} - {{ $home := printf `%s` site.Home.RelPermalink (i18n "home") | safeHTML }} - {{ $annotation := "" }} - - {{ if ne .Params.annotations false }} - {{ $annotation = (partial "hypothesis.html" .) }} - {{ end }} {{ $toc = $toc | replaceRE `id="TableOfContents"` `class="sidebar-nav"` | safeHTML }} {{ $toc = $toc | replaceRE "(<[/]?ul>|<[/]?ol>|<[/]?li>)" "" | safeHTML }} {{ $toc = $toc | replaceRE `(.*)` `$2` | safeHTML }} {{ if ne .Params.annotations false }} + {{ $annotation = (partial "hypothesis.html" .) }} {{ $toc = $toc | replaceRE `