Merge pull request #2217 from weili520/lesson_sort

fix: Support sort lesson  by weight
This commit is contained in:
KubeSphere CI Bot 2021-12-22 23:28:17 +08:00 committed by GitHub
commit 6868d68e25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>