File tree Expand file tree Collapse file tree 6 files changed +77
-1
lines changed
exampleSite/content/post/tutorials Expand file tree Collapse file tree 6 files changed +77
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : Test 2
3+ date : 2025-04-11 00:34:00 +0800
4+ description : >-
5+ Test 2
6+ ---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Test 3
3+ date : 2025-04-11 00:34:00 +0800
4+ description : >-
5+ Test 3
6+ ---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Test 4
3+ date : 2025-04-11 00:34:00 +0800
4+ description : >-
5+ Test 4
6+ ---
Original file line number Diff line number Diff line change 1+ ---
2+ title : Test 1
3+ date : 2025-04-11 00:34:00 +0800
4+ description : >-
5+ Test 1
6+ ---
7+
8+ 123
Original file line number Diff line number Diff 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" ]
Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments