diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-23 14:20:18 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-07-23 14:20:18 +0200 |
| commit | b72b81c410c161797eb525a6231b0517b4def993 (patch) | |
| tree | d8b2be9acd30b73be2fb1d3600c7004770da15b3 /internal/web/templates/readings.html | |
| parent | e4ac5326a42e45281ac8cdcf45757330bae007e9 (diff) | |
| download | lectio-b72b81c410c161797eb525a6231b0517b4def993.tar.gz lectio-b72b81c410c161797eb525a6231b0517b4def993.zip | |
web: HTML render + embedded themes
Diffstat (limited to 'internal/web/templates/readings.html')
| -rw-r--r-- | internal/web/templates/readings.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/internal/web/templates/readings.html b/internal/web/templates/readings.html new file mode 100644 index 0000000..0c57ddd --- /dev/null +++ b/internal/web/templates/readings.html @@ -0,0 +1,26 @@ +{{/* readings.html renders the reading pane fragment: one <section> per + liturgy.Section, with one .column per requested version. Role text + (heading, citation/subtitle, verse number, refrain) is wrapped in + class="..." spans so theme CSS can restyle it; base.css owns layout. */}} +{{range .}} +<section class="reading-section" data-part="{{.PartID}}"> + <h2 class="heading">{{.Heading}}</h2> + {{if .Subtitle}}<p class="citation">{{.Subtitle}}</p>{{end}} + <div class="columns"> + {{range .Columns}} + <div class="column"> + <h3 class="version-label">{{.Label}}</h3> + {{range .Blocks}} + {{if .Refrain}} + <p class="block refrain">{{.Text}}</p> + {{else if .VNum}} + <p class="block verse"><span class="vnum">{{.VNum}}</span> {{.Text}}</p> + {{else}} + <p class="block">{{.Text}}</p> + {{end}} + {{end}} + </div> + {{end}} + </div> +</section> +{{end}} |
