diff --git a/src/app.rs b/src/app.rs index 664fcb5..bb8fda2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -200,6 +200,7 @@ fn QuestionView( site: SiteConfig, ) -> impl IntoView { let question_id = question.id.clone(); + let has_chain = parent_hash.is_some(); // The provenance counterpart to the qualifies gate below: a // requires_chain page whose visitor holds no verifiable lineage to @@ -226,6 +227,8 @@ fn QuestionView( + // A gate is never a dead end: the same nav as every page. + } .into_any(); } @@ -261,6 +264,7 @@ fn QuestionView( }} + } .into_any(); } @@ -270,7 +274,6 @@ fn QuestionView( // on pages where some alternative actually declares a deck. let needs_swiper = question.alternatives.iter().any(|a| a.images.len() > 1); - let has_chain = parent_hash.is_some(); view! { {needs_swiper.then(|| view! { })}