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