From ea0627764998a498b01ab1dad0e56c95235384c3 Mon Sep 17 00:00:00 2001 From: devlikepro Date: Wed, 22 May 2024 18:42:05 +0700 Subject: [PATCH] [docs] Sort it by weight --- docs/site/layouts/docs/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/layouts/docs/list.html b/docs/site/layouts/docs/list.html index c2e02a49..0e0137f8 100644 --- a/docs/site/layouts/docs/list.html +++ b/docs/site/layouts/docs/list.html @@ -6,7 +6,7 @@

{{ if eq .CurrentSection .FirstSection }}{{ .Section | h {{ with .Content }}
{{ . }}
{{ end }}
{{ $currentSection := .CurrentSection }} - {{ range where .Site.RegularPages.ByWeight "Section" .Section }} + {{ range where .Site.Pages.ByWeight "Section" .Section }} {{ if in (.RelPermalink | string) $currentSection.RelPermalink }}