Change link labels
authorLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:09:42 +0000 (10:09 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:09:42 +0000 (10:09 -0400)
src/main/kotlin/info/mechyrdia/lore/view_nav.kt
src/main/kotlin/info/mechyrdia/lore/views_lore.kt

index 9ab9faba9ee016372899b16e7c95ab62db067374..66241e5aa867f67c0a72b2c5c1e348a990a51b0c 100644 (file)
@@ -13,8 +13,8 @@ import kotlin.collections.component2
 import kotlin.collections.set
 
 suspend fun ApplicationCall.standardNavBar(path: List<String>? = null) = listOf(
-       NavLink("/", "Intro"),
-       NavLink("/lore", "Lore Index")
+       NavLink("/", "Lore Intro"),
+       NavLink("/lore", "Table of Contents")
 ) + path?.let { pathParts ->
        pathParts.dropLast(1).mapIndexed { i, part ->
                val subPath = pathParts.take(i + 1).joinToString("/")
index a40b34639af58e09ae133fcc3302ba4a8195bdb6..a3f50355e9deee51989a24b334b1508e0b5d52e0 100644 (file)
@@ -11,7 +11,6 @@ import kotlinx.html.*
 import java.io.File
 
 private const val INTRO_TITLE = "Arma Virumque Cano"
-private const val INTRO_COMMENTS_PATH = "/"
 
 suspend fun ApplicationCall.loreIntroPage(): HTML.() -> Unit {
        val htmlFile = File(Configuration.CurrentConfiguration.articleDir).parentFile.combineSafe("intro.html")