about summary refs log tree commit diff
path: root/layouts/_default/list.html
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-27 14:04:30 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2023-07-27 14:04:30 +0700
commitfa98ab0589d4be1ca89a0538f6826b0037ff9821 (patch)
tree7c019babc4d02a3b7bc8dfb2fb6550fdc58345c7 /layouts/_default/list.html
parent890252ec5e659b439165e0d18ca991ef1bfad9ee (diff)
downloadvictor-fa98ab0589d4be1ca89a0538f6826b0037ff9821.tar.gz
Set up layout and navigation
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 }}