From: TheSaminator Date: Sun, 20 Feb 2022 22:56:28 +0000 (-0500) Subject: Change the order of the tags?????????? X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=fb86593970ee2b15f70b1bbc62ca1652678495c7;p=starship-fights Change the order of the tags?????????? --- diff --git a/src/jvmMain/kotlin/starshipfights/info/html_metadata.kt b/src/jvmMain/kotlin/starshipfights/info/html_metadata.kt index 2d96c7d..2fe1780 100644 --- a/src/jvmMain/kotlin/starshipfights/info/html_metadata.kt +++ b/src/jvmMain/kotlin/starshipfights/info/html_metadata.kt @@ -26,6 +26,10 @@ sealed class PageMetadataType { } fun HEAD.metadata(pageMetadata: PageMetadata, url: String) { + metaOG("og:title", pageMetadata.title) + metaOG("og:description", pageMetadata.description) + metaOG("og:url", url) + when (pageMetadata.type) { is PageMetadataType.Profile -> { metaOG("og:type", "profile") @@ -39,9 +43,6 @@ fun HEAD.metadata(pageMetadata: PageMetadata, url: String) { } } - metaOG("og:title", pageMetadata.title) - metaOG("og:description", pageMetadata.description) metaOG("og:site_name", "Starship Fights") - metaOG("og:url", url) metaOG("og:image", "https://starshipfights.net/static/images/embed-logo.png") }