Scene section is an article now, text section is a section now
This commit is contained in:
parent
b90a1255d3
commit
fdc6993f81
@ -43,7 +43,7 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
|
|||||||
div #story-container {
|
div #story-container {
|
||||||
div .scene-viewport {
|
div .scene-viewport {
|
||||||
@for (index, scene) in scenes.iter().enumerate() {
|
@for (index, scene) in scenes.iter().enumerate() {
|
||||||
div .scene-section
|
article .scene-section
|
||||||
data-section-index=(index)
|
data-section-index=(index)
|
||||||
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
|
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
|
||||||
div .scene-content {
|
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() {
|
@for (index, section) in sections.into_iter().enumerate() {
|
||||||
div .text-section
|
section .text-section
|
||||||
data-section-index=(index)
|
data-section-index=(index)
|
||||||
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
|
style=(format!("display: {};", if index == 0 { "block" } else { "none" })) {
|
||||||
(section)
|
(section)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user