Change the order of the tags??????????
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 20 Feb 2022 22:56:28 +0000 (17:56 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sun, 20 Feb 2022 22:56:28 +0000 (17:56 -0500)
src/jvmMain/kotlin/starshipfights/info/html_metadata.kt

index 2d96c7d2c05eb4d2dd29be3943bde68e35c9c648..2fe178021123c64d6c3d7a7276b808dad552bc0c 100644 (file)
@@ -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")
 }