Skip to content

Commit

Permalink
Add schedule to website
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaureir committed Sep 4, 2023
1 parent 98784fc commit 218bb5f
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
PLUGINS =["i18n_subsites"]

NAV_VALUES = [
{"slug": "programa", "text": "Programa"},
{"slug": "ciudad", "text": "Ciudad"},
{"slug": "viaje", "text": "Viaje"},
{"slug": "patrocinios", "text": "Patrocinios"},
Expand Down Expand Up @@ -53,6 +54,7 @@
'OUTPUT_PATH': 'output/en',
'THEME': "theme/pycones23_en",
'NAV_VALUES': [
{"slug": "programa", "text": "Schedule"},
{"slug": "ciudad", "text": "City"},
{"slug": "viaje", "text": "Trip"},
{"slug": "patrocinios", "text": "Sponsors"},
Expand Down
9 changes: 9 additions & 0 deletions content/programa-en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Title: Schedule
Date: 2023-09-05 10:00
Lang: en
Slug: programa
url: en/programa
save_as: programa/index.html


# Schedule
8 changes: 8 additions & 0 deletions content/programa-es.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Title: Programa
Date: 2023-09-05 10:00
Slug: programa
Lang: es
save_as: programa/index.html


# Programa
3 changes: 3 additions & 0 deletions theme/pycones23/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{% elif article.slug == "ofertas" %}
{{ article.content }}
{% include 'lista-ofertas.html' %}
{% elif article.slug == "programa" %}
{{ article.content }}
{% include 'programa.html' %}
{% else %}
{{ article.content }}
{% endif %}
Expand Down
19 changes: 19 additions & 0 deletions theme/pycones23/templates/programa.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% block extra_script %}
<script type="text/javascript" src="https://charlas.2023.es.pycon.org/pycones-2023/schedule/widget/v2.en.js"></script>
{% endblock extra_script %}


<pretalx-schedule event-url="https://charlas.2023.es.pycon.org/pycones-2023/" locale="es" format="grid" style="--pretalx-clr-primary: #3aa57c"></pretalx-schedule>
<noscript>
<div class="pretalx-widget">
<div class="pretalx-widget-info-message">
JavaScript is disabled in your browser. To access our schedule without JavaScript,
please <a target="_blank" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/">click here</a>.
</div>
</div>
</noscript>

<div class="box has-text-centered">
<a download target="_blank" class="button is-medium button is-primary" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/export/schedule.ics">Descargar ICal</a>
<a download target="_blank" class="button is-medium button is-link" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/export/schedule.xcal">Descargar XCal</a>
</div>
3 changes: 3 additions & 0 deletions theme/pycones23_en/templates/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
{% elif article.slug == "ofertas" %}
{{ article.content }}
{% include 'lista-ofertas.html' %}
{% elif article.slug == "programa" %}
{{ article.content }}
{% include 'programa.html' %}
{% else %}
{{ article.content }}
{% endif %}
Expand Down
19 changes: 19 additions & 0 deletions theme/pycones23_en/templates/programa.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{% block extra_script %}
<script type="text/javascript" src="https://charlas.2023.es.pycon.org/pycones-2023/schedule/widget/v2.en.js"></script>
{% endblock extra_script %}


<pretalx-schedule event-url="https://charlas.2023.es.pycon.org/pycones-2023/" locale="es" format="grid" style="--pretalx-clr-primary: #3aa57c"></pretalx-schedule>
<noscript>
<div class="pretalx-widget">
<div class="pretalx-widget-info-message">
JavaScript is disabled in your browser. To access our schedule without JavaScript,
please <a target="_blank" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/">click here</a>.
</div>
</div>
</noscript>

<div class="box has-text-centered">
<a download target="_blank" class="button is-medium button is-primary" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/export/schedule.ics">Download ICal</a>
<a download target="_blank" class="button is-medium button is-link" href="https://charlas.2023.es.pycon.org/pycones-2023/schedule/export/schedule.xcal">Download XCal</a>
</div>

0 comments on commit 218bb5f

Please sign in to comment.