Skip to content

Commit

Permalink
chore: Getting everything ready for change
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 10, 2024
1 parent 5fda413 commit 002d31e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions backend/src/main/kotlin/website/pages/NotFound.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
7 changes: 5 additions & 2 deletions backend/src/main/kotlin/website/pages/docs/DocsPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -161,6 +162,8 @@ private fun HTML.renderFullPage(
version: Version,
currentPage: ProjectPage,
) {
lang = "en"

setupHead(developmentMode) {

styleLink("/static/css/docs_style.css")
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
3 changes: 1 addition & 2 deletions backend/src/main/kotlin/website/pages/home/HomePage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ private fun HTML.fullPage(developmentMode: Boolean, projects: List<ProjectDispla

meta {
name = "og:image"
// TODO: Replace with final URL, sucks that it can't be relative
content = "https://new.triumphteam.dev/static/images/banner.png"
content = "https://triumphteam.dev/static/images/banner.png"
}

title("TriumphTeam")
Expand Down

0 comments on commit 002d31e

Please sign in to comment.