From 002d31e9a1f5c40fdfa1e31d145d96e6b27b4bf3 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 10 Jul 2024 23:49:18 +0100 Subject: [PATCH] chore: Getting everything ready for change --- backend/src/main/kotlin/website/pages/NotFound.kt | 3 +-- backend/src/main/kotlin/website/pages/docs/DocsPage.kt | 7 +++++-- backend/src/main/kotlin/website/pages/home/HomePage.kt | 3 +-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/src/main/kotlin/website/pages/NotFound.kt b/backend/src/main/kotlin/website/pages/NotFound.kt index 398de70..d420197 100644 --- a/backend/src/main/kotlin/website/pages/NotFound.kt +++ b/backend/src/main/kotlin/website/pages/NotFound.kt @@ -21,8 +21,7 @@ public fun HTML.respondNotFound(developmentMode: Boolean) { meta { name = "og:image" - // TODO: Replace with final URL, sucks that it can't be relative - content = "https://new.triumphteam.dev/static/images/banner_not_found.png" + content = "https://triumphteam.dev/static/images/banner_not_found.png" } title("TriumphTeam") diff --git a/backend/src/main/kotlin/website/pages/docs/DocsPage.kt b/backend/src/main/kotlin/website/pages/docs/DocsPage.kt index 829c3ed..7670106 100644 --- a/backend/src/main/kotlin/website/pages/docs/DocsPage.kt +++ b/backend/src/main/kotlin/website/pages/docs/DocsPage.kt @@ -51,6 +51,7 @@ import kotlinx.html.h1 import kotlinx.html.i import kotlinx.html.id import kotlinx.html.img +import kotlinx.html.lang import kotlinx.html.li import kotlinx.html.meta import kotlinx.html.script @@ -161,6 +162,8 @@ private fun HTML.renderFullPage( version: Version, currentPage: ProjectPage, ) { + lang = "en" + setupHead(developmentMode) { styleLink("/static/css/docs_style.css") @@ -176,8 +179,7 @@ private fun HTML.renderFullPage( } val title = "TriumphTeam | ${project.name} - ${currentPage.title}" - // TODO: Replace with final URL, sucks that it can't be relative - val image = "https://new.triumphteam.dev/assets/${project.id}/${version.reference}/${currentPage.id}/banner.png" + val image = "https://triumphteam.dev/assets/${project.id}/${version.reference}/${currentPage.id}/banner.png" meta { name = "description" @@ -349,6 +351,7 @@ private fun FlowContent.content(page: ProjectPage) { classes = setOf("py-4", "px-2") a { href = page.path + target = "_blank" classes = setOf("w-full", "text-white/75", "text-sm", "transition ease-in-out delay-100 project-color-hover") +"Edit this page on GitHub" diff --git a/backend/src/main/kotlin/website/pages/home/HomePage.kt b/backend/src/main/kotlin/website/pages/home/HomePage.kt index fc4a8b2..175bdb7 100644 --- a/backend/src/main/kotlin/website/pages/home/HomePage.kt +++ b/backend/src/main/kotlin/website/pages/home/HomePage.kt @@ -73,8 +73,7 @@ private fun HTML.fullPage(developmentMode: Boolean, projects: List