Fix stylesheet order (because that seems to matter)
This commit is contained in:
parent
dfe048bac2
commit
fc88a90703
@ -7,7 +7,7 @@ import moe.kageru.kodeshare.config.ServerSpec
|
|||||||
import moe.kageru.kodeshare.config.config
|
import moe.kageru.kodeshare.config.config
|
||||||
|
|
||||||
object AboutPage {
|
object AboutPage {
|
||||||
private val domain = "${config[ServerSpec.domain]}"
|
private val domain = config[ServerSpec.domain]
|
||||||
val content = HtmlContent(HttpStatusCode.OK) {
|
val content = HtmlContent(HttpStatusCode.OK) {
|
||||||
head {
|
head {
|
||||||
defaultHead("About kodeshare")
|
defaultHead("About kodeshare")
|
||||||
|
@ -6,14 +6,13 @@ import kotlinx.html.*
|
|||||||
object PastePage {
|
object PastePage {
|
||||||
fun build(content: String, uri: String, type: String?) = HtmlContent {
|
fun build(content: String, uri: String, type: String?) = HtmlContent {
|
||||||
head {
|
head {
|
||||||
link(rel = "stylesheet", href = "/style.css", type = "text/css")
|
defaultHead("View paste $uri${type?.let { " (type $it)" } ?: ""}")
|
||||||
link(
|
link(
|
||||||
rel = "stylesheet",
|
rel = "stylesheet",
|
||||||
href = "https://p.kageru.moe/static/hljs.css",
|
href = "https://p.kageru.moe/static/hljs.css",
|
||||||
type = "text/css"
|
type = "text/css"
|
||||||
)
|
)
|
||||||
script(src = "https://p.kageru.moe/static/hl.js") {}
|
script(src = "https://p.kageru.moe/static/hl.js") {}
|
||||||
defaultHead("View paste $uri${type?.let { " (type $it)" } ?: ""}")
|
|
||||||
// Show the first 3 lines in preview/embed for applications like discord, slack, or skype
|
// Show the first 3 lines in preview/embed for applications like discord, slack, or skype
|
||||||
meta(content = content.lines().take(3).joinToString("\n")) {
|
meta(content = content.lines().take(3).joinToString("\n")) {
|
||||||
attributes["property"] = "og:description"
|
attributes["property"] = "og:description"
|
||||||
|
Loading…
Reference in New Issue
Block a user