From 625d08cc23c25fbdf0ae97581283b7e69a1d1b77 Mon Sep 17 00:00:00 2001 From: Jesper Dramsch Date: Sun, 13 Oct 2024 20:15:40 +0200 Subject: [PATCH] fix cfp extension and remove twitter --- _config.yml | 4 +--- _i18n/de.yml | 1 + _i18n/en.yml | 1 + _i18n/es.yml | 1 + _layouts/conference.html | 41 ++++++++++++++++++++++++++-------------- 5 files changed, 31 insertions(+), 17 deletions(-) diff --git a/_config.yml b/_config.yml index adae8fa0edc..75ad3ddcc86 100644 --- a/_config.yml +++ b/_config.yml @@ -7,7 +7,6 @@ url: 'https://pythondeadlin.es' domain: 'pythondeadlin.es' baseurl: '' -twitter_username: jesperdramsch twitter_hashtag: python github_username: jesperdramsch github_repo: python-deadlines @@ -49,7 +48,6 @@ plugins: author: name: Jesper Dramsch url: https://dramsch.net - twitter: jesperdramsch social: @@ -59,6 +57,7 @@ social: - https://www.dramsch.net/mastodon - https://www.dramsch.net/threads - https://www.dramsch.net/github + - https://www.dramsch.net/youtube languages: - en @@ -69,7 +68,6 @@ exclude_from_localizations: - 'static' twitter: - username: jesperdramsch card: summary maps: diff --git a/_i18n/de.yml b/_i18n/de.yml index 1dcf7594c34..bb29f3e83ac 100644 --- a/_i18n/de.yml +++ b/_i18n/de.yml @@ -7,6 +7,7 @@ global: es: 'Espanol' de: 'Deutsch' cfp: 'Aufruf zur Teilnahme' + cfp_ext: 'CfP verlängert von' titles: default: 'Deadlines für Python-Konferenzen' archive: 'Archiv für Python-Konferenzen' diff --git a/_i18n/en.yml b/_i18n/en.yml index 7b360f9984a..fbc54e19cab 100644 --- a/_i18n/en.yml +++ b/_i18n/en.yml @@ -7,6 +7,7 @@ global: es: 'Espanol' de: 'Deutsch' cfp: 'Call for Participation' + cfp_ext: 'CfP extended from' titles: default: 'Python Conference Deadlines' archive: 'Past Python Conferences' diff --git a/_i18n/es.yml b/_i18n/es.yml index 54c1e77d6e9..92ca62173b8 100644 --- a/_i18n/es.yml +++ b/_i18n/es.yml @@ -7,6 +7,7 @@ global: es: 'Espanol' de: 'Deutsch' cfp: 'Llamada por participación' + cfp_ext: 'CfP extendido de' titles: default: 'Fechas Limites de Conferencias de Python ' archive: 'Conferencias anteriores de Python' diff --git a/_layouts/conference.html b/_layouts/conference.html index 57e9c37e4dc..2753401fdfa 100644 --- a/_layouts/conference.html +++ b/_layouts/conference.html @@ -2,6 +2,12 @@ description: Countdown for the Call for Participation of this conference including conference dates and details. --- +{% if page.cfp_ext %} + {% assign cfp = page.cfp_ext %} +{% else %} + {% assign cfp = page.cfp %} +{% endif %} + {% include head.html %} @@ -84,7 +90,7 @@

a.k.a. {{page.alt_name}} {{page.year}}

-
{% if page.cfp == "TBA" or page.cfp == "Cancelled" or page.cfp == "None" %}{{page.cfp}}{%endif%} +
{% if cfp == "TBA" or cfp == "Cancelled" or cfp == "None" %}{{cfp}}{%endif%}
@@ -102,6 +108,13 @@

a.k.a. {{page.alt_name}} {{page.year}}

Earth Icon {{page.link}}
+ {% if page.cfp_ext %} +
+ Document Icon for original CfP + {% t global.cfp_ext %} {{page.cfp}} +
+ {% endif %} {% if page.cfp_link %}
Document Icon for CfP linka.k.a. {{page.alt_name}} {{page.year}} {% endif %}
-
-
- {% include_cached footer.html %} + {% include_cached footer.html %} - {% assign title_length = page.title | size | minus: 26 %} - {% assign sliced_title = page.title | slice: 0, title_length %} + {% assign title_length = page.title | size | minus: 26 %} + {% assign sliced_title = page.title | slice: 0, title_length %} - {% include_cached trademarks.html title=sliced_title %} + {% include_cached trademarks.html title=sliced_title %} + +