From: Lanius Trolling Date: Thu, 27 Jul 2023 14:07:37 +0000 (-0400) Subject: Remove nav sidebar X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=110b8c50aa4cf1df5d2da0ee32f324787e4edf6b;p=factbooks Remove nav sidebar --- 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) }