{{/* index.html renders the full lectio-web page: essential controls on the left (date, lectionary, version checkboxes, all/gospel, layout, mono) and, pushed to the right, the nav + download links. Theme lives only in /settings now. The controls form (#controls) carries hx-get="/readings" and fires on any bubbling "change", so the readings pane re-fetches when a field changes. The date arrows step the date input by a day client-side and dispatch its change (so navigation is relative to the CURRENT date and updates the shown day). mono lives OUTSIDE the form so toggling it doesn't refetch readings. */}} lectio
{{/* The reader entry point is the primary action, so it leads the bar. */}} {{.L.NavReader}} → {{/* Always-present marker so the server can tell a form submit with every version unchecked (show nothing) from a fresh visit (config default). */}} {{/* Lectionary is a setting now (see /settings), carried as a hidden field so the readings, export and month-calendar links still use it. */}} {{range .VersionOpts}} {{end}}
{{/* Utility cluster, pinned to the top-right (see #controls / .controls-side): settings, then a "pobierz" disclosure that opens two download options -- a month calendar (its own month/year pickers) and the shown day's readings as txt/md/pdf. Both URLs are built from live values at click time (the readings export from the whole control form, the calendar from its own pickers plus the hidden lectionary field). */}} {{.L.NavSettings}}
{{.L.Export}}
{{.L.Calendar}} PDF
{{.Date}} txt md pdf
{{.Reading}}
{{/* AGPL-3.0 §13: the source offer must be visible to anyone using this server over a network, so it sits on every full page, not just here. */}}