From caacd1ef6cdc21471214d7731eb971d3f5baab56 Mon Sep 17 00:00:00 2001 From: shay7sev Date: Wed, 24 Sep 2025 20:52:54 +0800 Subject: [PATCH] fix(decap): fix config --- public/404.html | 3 +++ public/admin/config.yml | 8 ++++++-- public/index.html | 43 +++++++++++++++++++++++++++++++++++++++++ public/robots.txt | 4 ++++ public/sitemap.xml | 6 ++++++ static/admin/config.yml | 8 ++++++-- 6 files changed, 68 insertions(+), 4 deletions(-) create mode 100644 public/404.html create mode 100644 public/index.html create mode 100644 public/robots.txt create mode 100644 public/sitemap.xml diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..f8414f0 --- /dev/null +++ b/public/404.html @@ -0,0 +1,3 @@ + +404 Not Found +

404 Not Found

diff --git a/public/admin/config.yml b/public/admin/config.yml index aedd222..226a967 100644 --- a/public/admin/config.yml +++ b/public/admin/config.yml @@ -2,9 +2,13 @@ backend: name: gitea branch: main repo: admin/my-blog + api_root: https://gitea.shay7sev.site/api/v1 base_url: https://gitea.shay7sev.site # 你的 Gitea 域名 - auth_type: token - token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 + # auth_type: token + # token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 + auth_endpoint: https://gitea.shay7sev.site/api/v1/login/oauth/authorize + app_id: c1281d27-51c4-44f0-88ed-eb54e5ebfcc7 + app_secret: gto_ed5awdwu6jxqmtxfr4tgnwl7difbphutkaruv3ixh72agv2it7aa media_folder: "static/uploads" public_folder: "/uploads" diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..43f970e --- /dev/null +++ b/public/index.html @@ -0,0 +1,43 @@ + + + Zola + + +
+

Welcome to Zola!

+

+ You're seeing this page because we couldn't find a template to render. +

+

+ To modify this page, create a index.html file in the templates directory or + install a theme. +
+ You can find what variables are available in this template in the documentation. +

+
+ + + + diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..360bbac --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,4 @@ +User-agent: * +Disallow: +Allow: / +Sitemap: https://zolablog.shay7sev.site/sitemap.xml diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..318b8dc --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,6 @@ + + + + https://zolablog.shay7sev.site/ + + diff --git a/static/admin/config.yml b/static/admin/config.yml index aedd222..226a967 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -2,9 +2,13 @@ backend: name: gitea branch: main repo: admin/my-blog + api_root: https://gitea.shay7sev.site/api/v1 base_url: https://gitea.shay7sev.site # 你的 Gitea 域名 - auth_type: token - token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 + # auth_type: token + # token: 18067b7eb7befdf6711c28bf0cba648f28fa0887 + auth_endpoint: https://gitea.shay7sev.site/api/v1/login/oauth/authorize + app_id: c1281d27-51c4-44f0-88ed-eb54e5ebfcc7 + app_secret: gto_ed5awdwu6jxqmtxfr4tgnwl7difbphutkaruv3ixh72agv2it7aa media_folder: "static/uploads" public_folder: "/uploads"