Skip to content

Commit 83d24c4

Browse files
committed
release: v1.0.2
1 parent f06f188 commit 83d24c4

File tree

6 files changed

+77
-1
lines changed

6 files changed

+77
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Test 2
3+
date: 2025-04-11 00:34:00 +0800
4+
description: >-
5+
Test 2
6+
---
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Test 3
3+
date: 2025-04-11 00:34:00 +0800
4+
description: >-
5+
Test 3
6+
---
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Test 4
3+
date: 2025-04-11 00:34:00 +0800
4+
description: >-
5+
Test 4
6+
---
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: Test 1
3+
date: 2025-04-11 00:34:00 +0800
4+
description: >-
5+
Test 1
6+
---
7+
8+
123

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defaultContentLanguageInSubdir = false
88
pagerSize = 5
99

1010
[params]
11-
theme_version = "1.0.1"
11+
theme_version = "1.0.2"
1212

1313
[outputs]
1414
home = ["HTML", "RSS", "JSON"]

layouts/section/list.html

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{{ define "main" }}
2+
<main class="section-page">
3+
<header class="section-header">
4+
<h1>{{ .Title }}</h1>
5+
{{ with .Description }}
6+
<p class="section-description">{{ . }}</p>
7+
{{ end }}
8+
</header>
9+
10+
<div class="section-content">
11+
{{ .Content }}
12+
</div>
13+
14+
{{ if .Pages }}
15+
<div class="section-pages">
16+
<h2>Subsections & Pages</h2>
17+
<ul class="page-list">
18+
{{ range .Pages }}
19+
<li>
20+
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
21+
{{ if .IsSection }}
22+
<span class="badge">Section</span>
23+
{{ end }}
24+
{{ with .Description }}
25+
<p class="page-description">{{ . }}</p>
26+
{{ end }}
27+
</li>
28+
{{ end }}
29+
</ul>
30+
</div>
31+
{{ end }}
32+
33+
{{ if .Sections }}
34+
<div class="section-subsections">
35+
<h2>Subsections</h2>
36+
<div class="subsection-grid">
37+
{{ range .Sections }}
38+
<div class="subsection-card">
39+
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
40+
{{ with .Description }}
41+
<p>{{ . }}</p>
42+
{{ end }}
43+
<a href="{{ .RelPermalink }}" class="btn">View Section</a>
44+
</div>
45+
{{ end }}
46+
</div>
47+
</div>
48+
{{ end }}
49+
</main>
50+
{{ end }}

0 commit comments

Comments
 (0)