diff --git a/exampleSite/content/post/tutorials/2025-05-23-test2/index.en.md b/exampleSite/content/post/tutorials/2025-05-23-test2/index.en.md new file mode 100644 index 0000000..87fef45 --- /dev/null +++ b/exampleSite/content/post/tutorials/2025-05-23-test2/index.en.md @@ -0,0 +1,6 @@ +--- +title: Test 2 +date: 2025-04-11 00:34:00 +0800 +description: >- + Test 2 +--- \ No newline at end of file diff --git a/exampleSite/content/post/tutorials/python/python-test.md b/exampleSite/content/post/tutorials/python/python-test.md new file mode 100644 index 0000000..82a0c2d --- /dev/null +++ b/exampleSite/content/post/tutorials/python/python-test.md @@ -0,0 +1,6 @@ +--- +title: Test 3 +date: 2025-04-11 00:34:00 +0800 +description: >- + Test 3 +--- \ No newline at end of file diff --git a/exampleSite/content/post/tutorials/python/python-test2.md b/exampleSite/content/post/tutorials/python/python-test2.md new file mode 100644 index 0000000..2ca1d30 --- /dev/null +++ b/exampleSite/content/post/tutorials/python/python-test2.md @@ -0,0 +1,6 @@ +--- +title: Test 4 +date: 2025-04-11 00:34:00 +0800 +description: >- + Test 4 +--- \ No newline at end of file diff --git a/exampleSite/content/post/tutorials/test1.en.md b/exampleSite/content/post/tutorials/test1.en.md new file mode 100644 index 0000000..955caac --- /dev/null +++ b/exampleSite/content/post/tutorials/test1.en.md @@ -0,0 +1,8 @@ +--- +title: Test 1 +date: 2025-04-11 00:34:00 +0800 +description: >- + Test 1 +--- + +123 \ No newline at end of file diff --git a/hugo.toml b/hugo.toml index 54b77d0..87bf77f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -8,7 +8,7 @@ defaultContentLanguageInSubdir = false pagerSize = 5 [params] - theme_version = "1.0.1" + theme_version = "1.0.2" [outputs] home = ["HTML", "RSS", "JSON"] diff --git a/layouts/section/list.html b/layouts/section/list.html new file mode 100644 index 0000000..bc7f7ab --- /dev/null +++ b/layouts/section/list.html @@ -0,0 +1,50 @@ +{{ define "main" }} +
+
+

{{ .Title }}

+ {{ with .Description }} +

{{ . }}

+ {{ end }} +
+ +
+ {{ .Content }} +
+ + {{ if .Pages }} +
+

Subsections & Pages

+ +
+ {{ end }} + + {{ if .Sections }} +
+

Subsections

+
+ {{ range .Sections }} +
+

{{ .Title }}

+ {{ with .Description }} +

{{ . }}

+ {{ end }} + View Section +
+ {{ end }} +
+
+ {{ end }} +
+{{ end }} \ No newline at end of file