diff options
author | Eric Bailey <git@esb.lol> | 2024-02-06 20:52:04 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-06 18:52:04 -0800 |
commit | 541eb8ded120007b54efb4c2eb67363d6199fb8c (patch) | |
tree | 21ffb86ec4a1dbce635985eeaad46b00a1f813c2 | |
parent | 29b31b7739db3ffe1512a966fded4e5f2a69b932 (diff) | |
download | voidsky-541eb8ded120007b54efb4c2eb67363d6199fb8c.tar.zst |
Update open graph data (#2760)
* Update open graph data * Format * Fix typo
-rw-r--r-- | bskyweb/cmd/bskyweb/formating.go | 2 | ||||
-rw-r--r-- | bskyweb/static/safari-pinned-tab.svg | 33 | ||||
-rw-r--r-- | bskyweb/static/social-card-default-gradient.png | bin | 0 -> 226876 bytes | |||
-rw-r--r-- | bskyweb/static/social-card-default.png | bin | 16904 -> 14144 bytes | |||
-rw-r--r-- | bskyweb/templates/base.html | 6 | ||||
-rw-r--r-- | bskyweb/templates/home.html | 23 | ||||
-rw-r--r-- | bskyweb/templates/post.html | 1 |
7 files changed, 54 insertions, 11 deletions
diff --git a/bskyweb/cmd/bskyweb/formating.go b/bskyweb/cmd/bskyweb/formating.go index 023ba3f51..edd085ce8 100644 --- a/bskyweb/cmd/bskyweb/formating.go +++ b/bskyweb/cmd/bskyweb/formating.go @@ -51,7 +51,7 @@ func ExpandPostText(post *appbsky.FeedPost) string { } // TODO: could embed the actual post text? if post.Embed != nil && (post.Embed.EmbedRecord != nil || post.Embed.EmbedRecordWithMedia != nil) { - postText = fmt.Sprintf("%s\n\n[contains quote post or other embeded content]", postText) + postText = fmt.Sprintf("%s\n\n[contains quote post or other embedded content]", postText) } return postText } diff --git a/bskyweb/static/safari-pinned-tab.svg b/bskyweb/static/safari-pinned-tab.svg new file mode 100644 index 000000000..279d7b4b7 --- /dev/null +++ b/bskyweb/static/safari-pinned-tab.svg @@ -0,0 +1,33 @@ +<?xml version="1.0" standalone="no"?> +<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" + "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> +<svg version="1.0" xmlns="http://www.w3.org/2000/svg" + width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000" + preserveAspectRatio="xMidYMid meet"> +<metadata> +Created by potrace 1.14, written by Peter Selinger 2001-2017 +</metadata> +<g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" +fill="#000000" stroke="none"> +<path d="M390 4706 c-136 -38 -201 -106 -247 -261 -25 -85 -24 -350 1 -645 2 +-19 7 -71 10 -115 4 -44 9 -96 11 -115 2 -19 6 -71 10 -115 6 -84 23 -243 30 +-285 2 -14 6 -52 10 -85 6 -53 13 -98 29 -171 11 -54 63 -166 111 -240 108 +-167 281 -302 470 -369 28 -9 59 -21 70 -26 30 -13 181 -46 250 -55 33 -4 113 +-8 177 -8 64 -1 114 -4 110 -7 -6 -4 -65 -17 -197 -43 -11 -2 -47 -11 -80 -21 +-33 -9 -73 -20 -90 -24 -50 -14 -180 -68 -245 -103 -91 -49 -173 -119 -219 +-188 -50 -75 -61 -112 -68 -217 -12 -180 93 -411 310 -681 222 -277 442 -450 +663 -524 88 -29 233 -31 309 -4 180 64 333 229 473 511 77 155 189 454 247 +664 19 67 29 76 39 34 9 -39 27 -100 91 -317 148 -494 305 -754 516 -850 74 +-34 109 -40 219 -39 108 1 202 27 325 91 92 48 267 161 295 192 3 3 25 21 50 +41 52 42 151 143 205 209 20 25 44 54 53 65 28 33 122 179 122 189 0 5 6 17 +14 25 8 9 28 57 46 106 108 309 -13 558 -355 727 -130 65 -292 118 -435 144 +-73 14 -54 19 68 20 254 1 468 53 660 160 241 135 421 396 447 649 4 38 8 72 +10 75 2 5 5 28 20 168 3 23 7 61 10 85 2 23 7 74 11 112 3 39 7 86 9 105 2 19 +7 76 10 125 4 50 8 106 10 125 20 204 26 480 13 558 -26 153 -80 247 -168 292 +-203 104 -452 40 -817 -209 -131 -90 -162 -114 -248 -186 -319 -270 -683 -685 +-967 -1105 -91 -134 -218 -344 -218 -360 0 -23 -18 -7 -39 36 -27 58 -135 231 +-210 339 -64 93 -211 295 -226 311 -5 6 -21 26 -35 44 -14 18 -30 38 -35 44 +-6 6 -39 46 -74 90 -124 152 -370 410 -511 536 -19 17 -44 39 -55 49 -218 194 +-582 408 -762 446 -57 13 -189 13 -233 1z"/> +</g> +</svg> diff --git a/bskyweb/static/social-card-default-gradient.png b/bskyweb/static/social-card-default-gradient.png new file mode 100644 index 000000000..ba46e21f8 --- /dev/null +++ b/bskyweb/static/social-card-default-gradient.png Binary files differdiff --git a/bskyweb/static/social-card-default.png b/bskyweb/static/social-card-default.png index 00a85b8cf..848deab3f 100644 --- a/bskyweb/static/social-card-default.png +++ b/bskyweb/static/social-card-default.png Binary files differdiff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index 1f25743aa..e2f563c36 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -205,9 +205,13 @@ <link rel="apple-touch-icon" sizes="180x180" href="/static/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="32x32" href="/static/favicon-32x32.png"> <link rel="icon" type="image/png" sizes="16x16" href="/static/favicon-16x16.png"> - {% block html_head_extra -%}{%- endblock %} + <link rel="mask-icon" href="/static/safari-pinned-tab.svg" color="#1185fe"> + <meta name="theme-color" content="#ffffff"> <meta name="application-name" content="Bluesky"> <meta name="generator" content="bskyweb"> + <meta property="og:site_name" content="Bluesky Social" /> + + {% block html_head_extra -%}{%- endblock %} </head> <body> {%- block body_all %} diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html index e06b3a4b0..5d3fbad85 100644 --- a/bskyweb/templates/home.html +++ b/bskyweb/templates/home.html @@ -3,14 +3,21 @@ {% block head_title %}Bluesky{% endblock %} {% block html_head_extra -%} - <meta name="description" content="See what's next."> - <meta property="og:type" content="website"> - <meta property="og:title" content="Bluesky Social"> - <meta property="og:description" content="See what's next."> - <meta property="og:image" content="/static/social-card-default.png"> - <meta property="og:site_name" content="Bluesky Social"> - <meta name="twitter:card" content="summary"> - <meta name="twitter:site" content="@bluesky"> + <meta property="og:title" content="Bluesky" /> + <meta name="twitter:title" content="Bluesky" /> + + <meta name="description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> + <meta name="og:description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> + <meta name="twitter:description" content="Social media as it should be. Find your community among millions of users, unleash your creativity, and have some fun again." /> + + <meta property="og:url" content="https://bsky.app" /> + <meta name="twitter:url" content="https://bsky.app" /> + + <meta property="og:image" content="https://bsky.app/static/social-card-default-gradient.png" /> + <meta property="twitter:image" content="https://bsky.app/static/social-card-default-gradient.png" /> + + <meta name="twitter:site" content="@bluesky" /> + <meta name="twitter:card" content="summary_large_image" /> {%- endblock %} {% block noscript_extra %} diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index b6688e35b..af6b768b3 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -10,7 +10,6 @@ {% block html_head_extra -%} {%- if postView -%} - <meta property="og:site_name" content="Bluesky Social"> <meta property="og:type" content="article"> <meta property="profile:username" content="{{ profileView.Handle }}"> {%- if requestURI %} |