forked from cccb-website-team/www
Behebe Layoutauswahl unter aktuellem Hugo.
Die layouts/_default/*.calendar.html-Vorlagen werden in Hugo
≥0.158 fälschlich für die HTML-Ausgabe ausgewählt, sodass alle
Sektions- und Einzelseiten VCALENDAR- statt HTML-Inhalt
enthielten. Die Vorlagen waren ohnehin nie funktionsfähig
(Warnung „found no layout file for calendar"); die ICS-Feeds
liefern die abschnittsspezifischen Vorlagen unter
layouts/{veranstaltungen,datengarten,page}/.
list.xml.html bekommt aus demselben Grund die korrekte Endung
.xml.
tools/gen_upcoming.py vergleicht Datumsangaben jetzt
zeitzonenneutral, damit Events mit Z-Suffix keinen TypeError
auslösen.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
607da4c5fe
commit
a84e1e2153
5 changed files with 11 additions and 44 deletions
12
layouts/_default/list.xml.xml
Normal file
12
layouts/_default/list.xml.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<events>
|
||||
{{ range .Pages }}
|
||||
<event>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<date>{{ .Date.Format "2006-01-02" }}</date>
|
||||
<description>{{ .Summary | plainify }}</description>
|
||||
{{ with .Params.location }}<location>{{ . }}</location>{{ end }}
|
||||
</event>
|
||||
{{ end }}
|
||||
</events>
|
||||
Loading…
Add table
Add a link
Reference in a new issue