From 4cc477603c66aace926efcc0445d394ab79ff3d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=BF=E7=B2=92=E4=BD=93XianlitiCN?= Date: Mon, 2 Feb 2026 03:13:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitmodules | 6 ++++++ archetypes/default.md | 5 +++++ hugo.toml | 6 ++++++ static/admin/config.yml | 19 +++++++++++++++++++ static/admin/index.html | 13 +++++++++++++ themes/PaperMod | 1 + themes/dream | 1 + 7 files changed, 51 insertions(+) create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 hugo.toml create mode 100644 static/admin/config.yml create mode 100644 static/admin/index.html create mode 160000 themes/PaperMod create mode 160000 themes/dream diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f00119a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "themes/dream"] + path = themes/dream + url = https://github.com/g1eny0ung/hugo-theme-dream.git +[submodule "themes/PaperMod"] + path = themes/PaperMod + url = https://github.com/adityatelange/hugo-PaperMod.git diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..0b99425 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,6 @@ +baseURL = 'https://example.org/' +languageCode = 'zh-Hans' +title = '清水阁' +theme = 'PaperMod' +defaultContentLanguage = "zh" +hasCJKLanguage = true \ No newline at end of file diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..27d580e --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,19 @@ +backend: + name: git + repo: "/var/lib/gitea/data/gitea-repositories/xianliticn/qingshuige-hugo.git" + branch: main + auth_type: token + token: "94e6d08b325a713f9b3942d83539ec9f30b510b5" +media_folder: "static/uploads" +public_folder: "/uploads" + +collections: + - name: "blog" + label: "Blog" + folder: "content/blog" + create: true + slug: "{{slug}}" + fields: + - { label: "Title", name: "title", widget: "string" } + - { label: "Date", name: "date", widget: "datetime" } + - { label: "Body", name: "body", widget: "markdown" } diff --git a/static/admin/index.html b/static/admin/index.html new file mode 100644 index 0000000..69eff8e --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,13 @@ + + + + + + + Content Manager + + + + + + \ No newline at end of file diff --git a/themes/PaperMod b/themes/PaperMod new file mode 160000 index 0000000..3bb0ca2 --- /dev/null +++ b/themes/PaperMod @@ -0,0 +1 @@ +Subproject commit 3bb0ca281fd17eff8e3489011a444f326d7c4c72 diff --git a/themes/dream b/themes/dream new file mode 160000 index 0000000..67fbe52 --- /dev/null +++ b/themes/dream @@ -0,0 +1 @@ +Subproject commit 67fbe5265f3b9ac45f18295e3c02e2beea574dbf