Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bep/docuapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/list.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 71887cd..476b1fa 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -6,7 +6,10 @@
{{ define "toc" }}
<ul id="toc" class="toc-list-h1">
- {{ $headers := partial "funcs/toc_from_pages" .Site.RegularPages }}
+ {{ $headers := slice }}
+ {{ with .Site.RegularPages }}
+ {{ $headers = partial "funcs/toc_from_pages" . }}
+ {{ end }}
{{ range $headers }}
<li>
<a href="#{{ .id }}" class="toc-h{{ .level }} toc-link" data-title="{{ .title }}">{{ .title }}</a>