release: v1.0.2

This commit is contained in:
geekifan
2025-06-05 16:03:51 +08:00
committed by Yifan
parent f06f188d38
commit 83d24c4127
6 changed files with 77 additions and 1 deletions

View File

@ -0,0 +1,6 @@
---
title: Test 2
date: 2025-04-11 00:34:00 +0800
description: >-
Test 2
---

View File

@ -0,0 +1,6 @@
---
title: Test 3
date: 2025-04-11 00:34:00 +0800
description: >-
Test 3
---

View File

@ -0,0 +1,6 @@
---
title: Test 4
date: 2025-04-11 00:34:00 +0800
description: >-
Test 4
---

View File

@ -0,0 +1,8 @@
---
title: Test 1
date: 2025-04-11 00:34:00 +0800
description: >-
Test 1
---
123

View File

@ -8,7 +8,7 @@ defaultContentLanguageInSubdir = false
pagerSize = 5 pagerSize = 5
[params] [params]
theme_version = "1.0.1" theme_version = "1.0.2"
[outputs] [outputs]
home = ["HTML", "RSS", "JSON"] home = ["HTML", "RSS", "JSON"]

50
layouts/section/list.html Normal file
View File

@ -0,0 +1,50 @@
{{ define "main" }}
<main class="section-page">
<header class="section-header">
<h1>{{ .Title }}</h1>
{{ with .Description }}
<p class="section-description">{{ . }}</p>
{{ end }}
</header>
<div class="section-content">
{{ .Content }}
</div>
{{ if .Pages }}
<div class="section-pages">
<h2>Subsections & Pages</h2>
<ul class="page-list">
{{ range .Pages }}
<li>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
{{ if .IsSection }}
<span class="badge">Section</span>
{{ end }}
{{ with .Description }}
<p class="page-description">{{ . }}</p>
{{ end }}
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ if .Sections }}
<div class="section-subsections">
<h2>Subsections</h2>
<div class="subsection-grid">
{{ range .Sections }}
<div class="subsection-card">
<h3><a href="{{ .RelPermalink }}">{{ .Title }}</a></h3>
{{ with .Description }}
<p>{{ . }}</p>
{{ end }}
<a href="{{ .RelPermalink }}" class="btn">View Section</a>
</div>
{{ end }}
</div>
</div>
{{ end }}
</main>
{{ end }}