diff options
Diffstat (limited to 'internal/web/templates')
| -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}} |
