fix: Support sort lesson by weight

Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
This commit is contained in:
TheYoungManLi 2021-12-22 22:04:20 +08:00
parent dccf46541e
commit 30a2cf6f7a
3 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
---
linkTitle: 第一章:容器化基础
weight: 1
_build:
render: false

View File

@ -1,5 +1,6 @@
---
linkTitle: 第二章Kubernetes 基础
weight: 2
_build:
render: false

View File

@ -77,7 +77,7 @@
<div class="common-layout">
<h2>{{ .Params.section6.title }}</h2>
<ul class="level">
{{ range .Page.Sections }}
{{ range sort .Page.Sections "Weight" }}
<li>
<p class="title">{{ .LinkTitle }}</p>
<table>