From c807d873f7c221c2b2f22d566434d955d1c95f76 Mon Sep 17 00:00:00 2001 From: jwansek Date: Sat, 28 Aug 2021 23:45:58 +0000 Subject: added home redirect --- app.py | 5 +++-- static/images/switch.jpg | Bin 0 -> 90618 bytes static/index.md | 1 + static/robots.txt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100755 static/images/switch.jpg diff --git a/app.py b/app.py index 28d431e..d4b20f3 100644 --- a/app.py +++ b/app.py @@ -37,9 +37,9 @@ def get_correct_article_headers(db:database.Database, title): for i in db_headers: if i[0] != title: out.append(i) - return out + [("index", "/")] + return out + [("index", "/~")] else: - return db_headers + [("index", "/")] + return db_headers + [("index", "/~")] def get_template_items(title, db): return { @@ -50,6 +50,7 @@ def get_template_items(title, db): } @app.route("/") +@app.route("/~") def index(): with database.Database() as db: with open(os.path.join("static", "index.md"), "r") as f: diff --git a/static/images/switch.jpg b/static/images/switch.jpg new file mode 100755 index 0000000..64ab20c Binary files /dev/null and b/static/images/switch.jpg differ diff --git a/static/index.md b/static/index.md index c781cb2..e740d9d 100644 --- a/static/index.md +++ b/static/index.md @@ -10,3 +10,4 @@ i'll post my thoughts on here sometimes, and use this site to link to other stuf - [nitter - alternative twitter frontend](https://nitter.eda.gay) - [gitea - github alternative](https://git.eda.gay/) (currently down while i migrate to gitlab docker) - [bibliogram - less annoying instagram front end](https://bibliogram.eda.gay/applysettings/c8009ec7533d542a90bb1d41563435c1) +- [emby - web player for ~~legally downloaded~~ TV and films](https://emby.eda.gay) diff --git a/static/robots.txt b/static/robots.txt index 8093c87..c2aab7e 100755 --- a/static/robots.txt +++ b/static/robots.txt @@ -1,2 +1,2 @@ User-agent: * -Disallow: \ No newline at end of file +Disallow: / \ No newline at end of file -- cgit v1.2.3