From cd32b66856ca22cd7f76e20130a98b9dacc0c09a Mon Sep 17 00:00:00 2001 From: Lanius Trolling Date: Thu, 27 Jul 2023 10:08:51 -0400 Subject: [PATCH] Remove comments and visitation data from front page --- src/main/kotlin/info/mechyrdia/lore/views_lore.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/main/kotlin/info/mechyrdia/lore/views_lore.kt b/src/main/kotlin/info/mechyrdia/lore/views_lore.kt index 03ff615..a40b346 100644 --- a/src/main/kotlin/info/mechyrdia/lore/views_lore.kt +++ b/src/main/kotlin/info/mechyrdia/lore/views_lore.kt @@ -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) } } -- 2.25.1