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("/")
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")