Scene section is an article now, text section is a section now

This commit is contained in:
p11 2025-04-21 10:31:57 +02:00
parent b90a1255d3
commit fdc6993f81

View File

@ -43,7 +43,7 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
div #story-container {
div .scene-viewport {
@for (index, scene) in scenes.iter().enumerate() {
div .scene-section
article .scene-section
data-section-index=(index)
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
div .scene-content {
@ -53,7 +53,7 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
}
@for (index, section) in sections.into_iter().enumerate() {
div .text-section
section .text-section
data-section-index=(index)
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
(section)