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