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