about summary refs log tree commit diff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/list.html')
-rw-r--r--layouts/_default/list.html11
1 files changed, 4 insertions, 7 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 8a60cb4..dfd346c 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -10,17 +10,14 @@ SPDX-License-Identifier: MIT
   </section>
   <section class="toc">
     <h1 class="post-title">{{ i18n .Title }}</h1>
-    {{ $pages := where .Pages "Type" "in" site.Params.mainSections }}
     <ol>
-      {{ range $pages }}
-        <li class="post-short-list h-entry">
-          <h2 class="p-name post-title{{ if .Params.draft }} draft{{end}}">
-            <a class="u-url" href="{{ .RelPermalink }}">{{ trim .Title " " }}</a>
-          </h2>
+      {{ range sort .Pages "Weight" }}
+        <li>
+          <a href="{{ .RelPermalink }}">{{ trim .Title " " }}</a>
           {{ partial "post-language-switcher.html" . }}
           {{ partial "post-info.html" . }}
         </li>
       {{ end }}
-      <li>
+      <ol>
   </section>
 {{ end }}