From 110b8c50aa4cf1df5d2da0ee32f324787e4edf6b Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Thu, 27 Jul 2023 10:07:37 -0400 Subject: [PATCH] Remove nav sidebar --- src/main/kotlin/info/mechyrdia/lore/views_lore.kt | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/kotlin/info/mechyrdia/lore/views_lore.kt b/src/main/kotlin/info/mechyrdia/lore/views_lore.kt index c954c1b..03ff615 100644 --- a/src/main/kotlin/info/mechyrdia/lore/views_lore.kt +++ b/src/main/kotlin/info/mechyrdia/lore/views_lore.kt @@ -10,7 +10,7 @@ import kotlinx.coroutines.flow.toList import kotlinx.html.* import java.io.File -private const val INTRO_TITLE = "Welcome to Mechyrdia" +private const val INTRO_TITLE = "Arma Virumque Cano" private const val INTRO_COMMENTS_PATH = "/" suspend fun ApplicationCall.loreIntroPage(): HTML.() -> Unit { @@ -25,17 +25,10 @@ suspend fun ApplicationCall.loreIntroPage(): HTML.() -> Unit { canCommentAs.await() to comments.await() } - val sidebar = PageNavSidebar( - listOf( - NavLink("#page-top", INTRO_TITLE, aClasses = "left"), - NavLink("#comments", "Comments", aClasses = "left") - ) - ) - val htmlFile = File(Configuration.CurrentConfiguration.articleDir).parentFile.combineSafe("intro.html") val fileHtml = htmlFile.readText() - return page(INTRO_TITLE, standardNavBar(), sidebar) { + return page(INTRO_TITLE, standardNavBar(), null) { section { a { id = "page-top" } unsafe { raw(fileHtml) } -- 2.25.1