From fdc6993f81ec069fdd0a93eea3a409f09d93d382 Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 21 Apr 2025 10:31:57 +0200 Subject: [PATCH] Scene section is an article now, text section is a section now --- src/vn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vn.rs b/src/vn.rs index c36fac2..d10a961 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -43,7 +43,7 @@ fn generate_html(scenes: Vec, sections: Vec) -> 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, sections: Vec) -> 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)