From fc1e5f94ceb26c26a6a2f15032d0e158484fbdc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 17 May 2023 05:41:54 +0200 Subject: [PATCH] Continued: - added slogan --- api.py | 3 ++- config.defaults.json | 3 ++- index.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/api.py b/api.py index 5df098f..917101b 100644 --- a/api.py +++ b/api.py @@ -30,7 +30,8 @@ def info(): return { "known_instances": known, "indexed_instances": indexed, - "blocks_recorded": blocks + "blocks_recorded": blocks, + "slogan": config["slogan"] } @app.get(base_url+"/top") diff --git a/config.defaults.json b/config.defaults.json index 47dfaef..1a0b4df 100644 --- a/config.defaults.json +++ b/config.defaults.json @@ -6,5 +6,6 @@ "bot_enabled": false, "bot_instance": "https://example.com", "bot_token": "", - "bot_visibility": "unlisted" + "bot_visibility": "unlisted", + "slogan": "### Your footer slogan ###" } diff --git a/index.html b/index.html index d2ff5dd..b15952f 100644 --- a/index.html +++ b/index.html @@ -163,7 +163,7 @@ indexed instances: {{info.indexed_instances}}
blocks recorded: {{info.blocks_recorded}}
source code: git.mxchange.org

- #SayNoToWoke #StraightNotBisexual + {{info.slogan}} {% endif %} -- 2.39.5