Skip to content

Commit

Permalink
fix: Fix SSR graphics
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jun 26, 2024
1 parent 8c4c37a commit 2c5fc31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/main/kotlin/website/pages/docs/DocsPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ private fun HTML.renderFullPage(

meta {
name = "og:type"
content = "website"
content = "article"
}

meta {
Expand Down
17 changes: 17 additions & 0 deletions backend/src/main/kotlin/website/pages/home/HomePage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import kotlinx.html.h1
import kotlinx.html.i
import kotlinx.html.img
import kotlinx.html.link
import kotlinx.html.meta
import kotlinx.html.style
import kotlinx.html.title
import org.jetbrains.exposed.sql.and
Expand Down Expand Up @@ -60,6 +61,22 @@ private fun HTML.fullPage(developmentMode: Boolean, projects: List<ProjectDispla
rel = "stylesheet"
}

meta {
name = "og:type"
content = "article"
}

meta {
name = "og:title"
content = "TriumphTeam"
}

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"
}

title("TriumphTeam")
}

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2c5fc31

Please sign in to comment.