Skip to content

Commit

Permalink
Update open graph data (bluesky-social#2760)
Browse files Browse the repository at this point in the history
* Update open graph data

* Format

* Fix typo
  • Loading branch information
estrattonbailey authored Feb 7, 2024
1 parent 29b31b7 commit 541eb8d
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 11 deletions.
2 changes: 1 addition & 1 deletion bskyweb/cmd/bskyweb/formating.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
33 changes: 33 additions & 0 deletions bskyweb/static/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bskyweb/static/social-card-default-gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bskyweb/static/social-card-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion bskyweb/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
23 changes: 15 additions & 8 deletions bskyweb/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down
1 change: 0 additions & 1 deletion bskyweb/templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 541eb8d

Please sign in to comment.