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 {
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) }