diff --git a/README.md b/README.md index e69de29..6d4a8f1 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,7 @@ +backend: +name: gitea +repo: admin/my-blog +branch: main +base_url: https://gitea.shay7sev.site +auth_type: token +token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 diff --git a/config.toml b/config.toml index 51905cb..f36ee08 100644 --- a/config.toml +++ b/config.toml @@ -14,3 +14,4 @@ highlight_code = false [extra] # Put all your custom variables here + diff --git a/public/admin/config.yml b/public/admin/config.yml new file mode 100644 index 0000000..aedd222 --- /dev/null +++ b/public/admin/config.yml @@ -0,0 +1,20 @@ +backend: + name: gitea + branch: main + repo: admin/my-blog + base_url: https://gitea.shay7sev.site # 你的 Gitea 域名 + auth_type: token + token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 +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: "Publish Date", name: "date", widget: "datetime" } + - { label: "Body", name: "body", widget: "markdown" } diff --git a/public/admin/index.html b/public/admin/index.html new file mode 100644 index 0000000..a32cbda --- /dev/null +++ b/public/admin/index.html @@ -0,0 +1,10 @@ + + + + + Content Manager + + + + + diff --git a/static/admin/config.yml b/static/admin/config.yml new file mode 100644 index 0000000..aedd222 --- /dev/null +++ b/static/admin/config.yml @@ -0,0 +1,20 @@ +backend: + name: gitea + branch: main + repo: admin/my-blog + base_url: https://gitea.shay7sev.site # 你的 Gitea 域名 + auth_type: token + token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 +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: "Publish 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..a32cbda --- /dev/null +++ b/static/admin/index.html @@ -0,0 +1,10 @@ + + + + + Content Manager + + + + +