From 8b88be01c95c77f5fd5ec46ffaf4fadd6a64b61b Mon Sep 17 00:00:00 2001 From: Eduardo Enriquez Date: Sun, 5 Oct 2025 13:27:55 +0200 Subject: [PATCH] add Telegram link to footer and "What We Do" section --- pelicanconf.py | 1 + theme/templates/includes/section_what_we_do.html | 6 ++++++ theme/templates/includes/site_footer.html | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/pelicanconf.py b/pelicanconf.py index f81e3d1..cd1725f 100644 --- a/pelicanconf.py +++ b/pelicanconf.py @@ -61,6 +61,7 @@ def cachebust(url, file): TALK_FORM_URL = 'https://forms.gle/ocZGbV6F3BUvD4vx9' HOST_FORM_URL = 'https://forms.gle/Zc1Z15qQ4Rbs5e869' +TELEGRAM_URL = os.environ.get('TELEGRAM_URL', 'https://t.me/pyamsterdam') CDN = bool(os.environ.get('CDN', False)) PATH = 'content' diff --git a/theme/templates/includes/section_what_we_do.html b/theme/templates/includes/section_what_we_do.html index a3f9360..bab9626 100644 --- a/theme/templates/includes/section_what_we_do.html +++ b/theme/templates/includes/section_what_we_do.html @@ -56,6 +56,12 @@

+ {% if TELEGRAM_URL %} + + + Join our Telegram + + {% endif %}
diff --git a/theme/templates/includes/site_footer.html b/theme/templates/includes/site_footer.html index e66f4db..6afc578 100644 --- a/theme/templates/includes/site_footer.html +++ b/theme/templates/includes/site_footer.html @@ -25,6 +25,12 @@ Py.Amsterdam

+ {% if TELEGRAM_URL %} +

+ + Telegram +

+ {% endif %}

More information