diff --git a/data/bridges.json b/data/bridges.json new file mode 100644 index 0000000..b71da29 --- /dev/null +++ b/data/bridges.json @@ -0,0 +1,40 @@ +{ + "bridges": [ + { + "name": "Telegram", + "mxid": "@telegrambot:private.coffee" + }, + { + "name": "WhatsApp", + "mxid": "@whatsappbot:private.coffee" + }, + { + "name": "Discord", + "mxid": "@discordbot:private.coffee" + }, + { + "name": "Slack", + "mxid": "@slackbot:private.coffee" + }, + { + "name": "LinkedIn", + "mxid": "@linkedinbot:private.coffee" + }, + { + "name": "GPT-4o", + "mxid": "@gptbot:private.coffee" + }, + { + "name": "RSS/Atom feeds", + "mxid": "@rssbot:private.coffee" + }, + { + "name": "Instagram", + "mxid": "@instagrambot:private.coffee" + }, + { + "name": "Facebook", + "mxid": "@facebookbot:private.coffee" + } + ] +} \ No newline at end of file diff --git a/main.py b/main.py index bf76168..0590463 100644 --- a/main.py +++ b/main.py @@ -80,6 +80,11 @@ def generate_static_site(development_mode=False): (pathlib.Path(__file__).parent / "data" / "finances.json").read_text() ) + # Load bridges data + bridges = json.loads( + (pathlib.Path(__file__).parent / "data" / "bridges.json").read_text() + ) + # Iterate over all templates in the templates directory templates_path = pathlib.Path("templates") for template_file in templates_path.glob("*.html"): @@ -89,6 +94,9 @@ def generate_static_site(development_mode=False): if template_name in ["index", "simple"]: context.update({"services": services}) + if template_name == "bridges": + context.update({"bridges": bridges}) + if template_name == "membership": allow_current = development_mode finances_month, finances_year = get_latest_month(finances, allow_current) diff --git a/templates/bridges.html b/templates/bridges.html new file mode 100644 index 0000000..4b61a3a --- /dev/null +++ b/templates/bridges.html @@ -0,0 +1,19 @@ + + +
+ + +These are the bridges and bots available to Private.coffee Matrix users:
+