Initial commit
This commit is contained in:
commit
02ec9055ce
5 changed files with 57 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
/statical/output/agenda/*
|
||||||
|
/statical/output/day/*
|
||||||
|
/statical/output/month/*
|
||||||
|
/statical/output/week/*
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Ce dépôt contient certaines sources utilisées pour [le site des Dubitaristes Girondins](https://dubitaristes.fr).
|
||||||
|
|
||||||
|
* [`statical`](https://github.com/egrieco/statical): rendu HTML de calendrier ICS
|
3
scripts/update-calendar.sh
Normal file
3
scripts/update-calendar.sh
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#cd statical && statical -f /home/tuxmain/Téléchargements/foo.ics
|
||||||
|
#cd statical && statical -f /home/tuxmain/Téléchargements/dubi.ics
|
||||||
|
cd statical && statical -u https://mobilizon.cloud-libre.eu/@dubitaristes/feed/ics
|
8
statical/statical.toml
Normal file
8
statical/statical.toml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
render_agenda = true
|
||||||
|
render_day = false
|
||||||
|
render_month = false
|
||||||
|
render_week = false
|
||||||
|
output_dir = "output"
|
||||||
|
display_timezone = "EET"
|
||||||
|
agenda_events_per_page = 5
|
||||||
|
agenda_start_date = ""
|
39
statical/templates/agenda.html
Normal file
39
statical/templates/agenda.html
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<style type="text/css">
|
||||||
|
.agenda-title {
|
||||||
|
font-size: 115%;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
.agenda-events {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0em 1em;
|
||||||
|
}
|
||||||
|
.agenda-events li {
|
||||||
|
padding: 0 0;
|
||||||
|
}
|
||||||
|
.agenda-ical_link {
|
||||||
|
float: right;
|
||||||
|
padding: 4px;
|
||||||
|
font-size: 200%;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.agenda-ical_link:hover, .agenda-ical_link:focus {
|
||||||
|
background-color: #f19300;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div class="agenda">
|
||||||
|
<span class="agenda-title">Prochains événements</span>
|
||||||
|
<ul class="agenda-events">
|
||||||
|
{% for event in events %}
|
||||||
|
<li>
|
||||||
|
<span class="agenda-event-start">{{ event[0].events[0].start_timestamp | date(format="%d/%m à %H:%M", timezone="Europe/Paris") }}</span>
|
||||||
|
{% if event[1].url %}<a href="{{ event[1].url }}">{% endif %}
|
||||||
|
{{ event[1].summary }}
|
||||||
|
{% if event[1].url %}</a>{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
<a href="/mobilizon_events">➤ Tous les événements</a>
|
||||||
|
<a class="agenda-ical_link" href="https://mobilizon.cloud-libre.eu/@dubitaristes/feed/ics" title="Calendrier iCalendar" aria-label="Calendrier iCalendar">🗓</a>
|
||||||
|
</div>
|
||||||
|
<!-- calendar from Mobilizon rendered using statical: https://github.com/ZettaScript/statical -->
|
Loading…
Reference in a new issue