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