statical-template: improve, locale

This commit is contained in:
Pascal Engélibert 2022-09-20 15:07:24 +02:00
parent 2878e6a33e
commit 4d0a178ff2
Signed by: tuxmain
GPG key ID: 3504BC6D362F7DCA
2 changed files with 8 additions and 12 deletions

View file

@ -6,3 +6,7 @@ output_dir = "output"
display_timezone = "EET" display_timezone = "EET"
agenda_events_per_page = 5 agenda_events_per_page = 5
agenda_start_date = "" agenda_start_date = ""
default_calendar_view = "agenda"
stylesheet_path = ""
copy_stylesheet_to_output = false
copy_stylesheet_from = ""

View file

@ -7,11 +7,11 @@
padding: 0 0; padding: 0 0;
} }
.agenda-event-summary, .agenda-event-summary:visited { .agenda-event-summary, .agenda-event-summary:visited {
color: #93117e; color: #93117e !important;
font-weight: bold; font-weight: bold;
} }
.agenda-event-summary:hover, .agenda-event-summary:focus { .agenda-event-summary:hover, .agenda-event-summary:focus {
color: #f19300; color: #f19300 !important;
} }
.agenda-ical_link { .agenda-ical_link {
float: right; float: right;
@ -28,18 +28,10 @@
<ul class="agenda-events"> <ul class="agenda-events">
{% for event in events %} {% for event in events %}
<li> <li>
<p> <p><span class="agenda-event-start">{{ event[0].events[0].start_timestamp | date(format="%A %d %B à %H:%M", timezone=timezone, locale="fr_FR") | safe }}</span><br/><a class="agenda-event-summary"{% if event[1].url %} href="{{ event[1].url }}"{% endif %}>{{ event[1].summary }}</a></p>
<span class="agenda-event-start">
{{ event[0].events[0].start_timestamp | date(format="le %d/%m à %H:%M", timezone=timezone) | safe }}
</span><br/>
<a class="agenda-event-summary"{% if event[1].url %} href="{{ event[1].url }}"{% endif %}>
{{ event[1].summary }}
</a>
</p>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="https://mobilizon.cloud-libre.eu/@dubitaristes">&#10148; Tout l'agenda</a> <p><a href="https://mobilizon.cloud-libre.eu/@dubitaristes">&#10148; Voir tout</a> &#8211 <a href="https://mobilizon.cloud-libre.eu/@dubitaristes/events?future=false">Archive</a> <a class="agenda-ical_link" href="https://mobilizon.cloud-libre.eu/@dubitaristes/feed/ics" title="Calendrier iCalendar" aria-label="Calendrier iCalendar">&#128467;</a></p>
<a class="agenda-ical_link" href="https://mobilizon.cloud-libre.eu/@dubitaristes/feed/ics" title="Calendrier iCalendar" aria-label="Calendrier iCalendar">&#128467;</a>
</div> </div>
<!-- calendar from Mobilizon rendered using statical: https://github.com/ZettaScript/statical --> <!-- calendar from Mobilizon rendered using statical: https://github.com/ZettaScript/statical -->