From 83d24c4127d7c629c8fd45a7ac9c0da69624568c Mon Sep 17 00:00:00 2001 From: geekifan Date: Thu, 5 Jun 2025 16:03:51 +0800 Subject: [PATCH] release: v1.0.2 --- .../tutorials/2025-05-23-test2/index.en.md | 6 +++ .../post/tutorials/python/python-test.md | 6 +++ .../post/tutorials/python/python-test2.md | 6 +++ .../content/post/tutorials/test1.en.md | 8 +++ hugo.toml | 2 +- layouts/section/list.html | 50 +++++++++++++++++++ 6 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 exampleSite/content/post/tutorials/2025-05-23-test2/index.en.md create mode 100644 exampleSite/content/post/tutorials/python/python-test.md create mode 100644 exampleSite/content/post/tutorials/python/python-test2.md create mode 100644 exampleSite/content/post/tutorials/test1.en.md create mode 100644 layouts/section/list.html 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

+
    + {{ range .Pages }} +
  • + {{ .Title }} + {{ if .IsSection }} + Section + {{ end }} + {{ with .Description }} +

    {{ . }}

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

Subsections

+
+ {{ range .Sections }} +
+

{{ .Title }}

+ {{ with .Description }} +

{{ . }}

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