Remove comments and visitation data from front page
authorLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:08:51 +0000 (10:08 -0400)
committerLanius Trolling <lanius@laniustrolling.dev>
Thu, 27 Jul 2023 14:08:51 +0000 (10:08 -0400)
src/main/kotlin/info/mechyrdia/lore/views_lore.kt

index 03ff615e568d0b1a9e4d6f6fa4e1311ee899709e..a40b34639af58e09ae133fcc3302ba4a8195bdb6 100644 (file)
@@ -14,17 +14,6 @@ private const val INTRO_TITLE = "Arma Virumque Cano"
 private const val INTRO_COMMENTS_PATH = "/"
 
 suspend fun ApplicationCall.loreIntroPage(): HTML.() -> Unit {
-       val totalsData = processGuestbook()
-       
-       val (canCommentAs, comments) = coroutineScope {
-               val canCommentAs = async { currentNation() }
-               val comments = async {
-                       CommentRenderData(Comment.getCommentsIn(INTRO_COMMENTS_PATH).toList(), nationCache)
-               }
-               
-               canCommentAs.await() to comments.await()
-       }
-       
        val htmlFile = File(Configuration.CurrentConfiguration.articleDir).parentFile.combineSafe("intro.html")
        val fileHtml = htmlFile.readText()
        
@@ -33,8 +22,6 @@ suspend fun ApplicationCall.loreIntroPage(): HTML.() -> Unit {
                        a { id = "page-top" }
                        unsafe { raw(fileHtml) }
                }
-               
-               finalSection(INTRO_COMMENTS_PATH, canCommentAs, comments, totalsData)
        }
 }