Remove nav sidebar
authorLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:07:37 +0000 (10:07 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:07:37 +0000 (10:07 -0400)
src/main/kotlin/info/mechyrdia/lore/views_lore.kt

index c954c1b344f067c884434c3b2cc06dd7f4bfdc11..03ff615e568d0b1a9e4d6f6fa4e1311ee899709e 100644 (file)
@@ -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) }