release: v1.0.2
This commit is contained in:
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: Test 2
|
||||||
|
date: 2025-04-11 00:34:00 +0800
|
||||||
|
description: >-
|
||||||
|
Test 2
|
||||||
|
---
|
6
exampleSite/content/post/tutorials/python/python-test.md
Normal file
6
exampleSite/content/post/tutorials/python/python-test.md
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: Test 3
|
||||||
|
date: 2025-04-11 00:34:00 +0800
|
||||||
|
description: >-
|
||||||
|
Test 3
|
||||||
|
---
|
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: Test 4
|
||||||
|
date: 2025-04-11 00:34:00 +0800
|
||||||
|
description: >-
|
||||||
|
Test 4
|
||||||
|
---
|
8
exampleSite/content/post/tutorials/test1.en.md
Normal file
8
exampleSite/content/post/tutorials/test1.en.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: Test 1
|
||||||
|
date: 2025-04-11 00:34:00 +0800
|
||||||
|
description: >-
|
||||||
|
Test 1
|
||||||
|
---
|
||||||
|
|
||||||
|
123
|
@ -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
50
layouts/section/list.html
Normal 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 }}
|
Reference in New Issue
Block a user