From 78557a6ffacdbedfb67fcd7133f45eb0134d5800 Mon Sep 17 00:00:00 2001 From: skimrme Date: Tue, 19 May 2026 22:58:04 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=A4=A7=E4=BD=93=E7=BB=93?= =?UTF-8?q?=E6=9E=84=EF=BC=8C=E5=90=8E=E7=BB=AD=E8=BF=98=E9=9C=80=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E6=88=96=E8=80=85=E8=BF=81=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/main.py | 20 ++++++++++++++++++-- var/static/src/js/resources/main.js | 0 var/templates/bbs.html | 11 +++++++++++ var/templates/home.html | 8 ++++---- var/templates/resources.html | 17 ++++++++++++++++- 5 files changed, 49 insertions(+), 7 deletions(-) create mode 100644 var/static/src/js/resources/main.js create mode 100644 var/templates/bbs.html diff --git a/var/main.py b/var/main.py index 1219367..5852acd 100644 --- a/var/main.py +++ b/var/main.py @@ -37,12 +37,28 @@ async def reload_301(): async def home(request: Request): return templates.TemplateResponse( "home.html", - {"request": request} + { + "request": request, + "title": "home" + } ) @app.get("/resources/") async def resources(request: Request): return templates.TemplateResponse( "resources.html", - {"request": request} + { + "request": request, + "title": "resources" + } + ) + +@app.get("/bbs/") +async def bbs(request: Request): + return templates.TemplateResponse( + "bbs.html", + { + "request": request, + "title": "bbs" + }, ) \ No newline at end of file diff --git a/var/static/src/js/resources/main.js b/var/static/src/js/resources/main.js new file mode 100644 index 0000000..e69de29 diff --git a/var/templates/bbs.html b/var/templates/bbs.html new file mode 100644 index 0000000..95de108 --- /dev/null +++ b/var/templates/bbs.html @@ -0,0 +1,11 @@ + + + 绿坝娘资源小站 (仮) | {{ title }} + + + + 返回主页 +
+ 搭建中...... + + \ No newline at end of file diff --git a/var/templates/home.html b/var/templates/home.html index 3aa9858..6362273 100644 --- a/var/templates/home.html +++ b/var/templates/home.html @@ -1,6 +1,6 @@ - 绿坝娘资源小站 (仮) | home + 绿坝娘资源小站 (仮) | {{ title }} @@ -35,10 +35,10 @@


-
  • - 主页 +
  • + 主页 资源 - 论坛 + 论坛


  • diff --git a/var/templates/resources.html b/var/templates/resources.html index d800886..ae141fa 100644 --- a/var/templates/resources.html +++ b/var/templates/resources.html @@ -1 +1,16 @@ -123 \ No newline at end of file + + + 绿坝娘资源小站 (仮) | {{ title }} + + + + 返回主页 +
    +

    Index of /

    +
    +
    +
    +        
    +
    + + \ No newline at end of file