diff options
author | bnewbold <bnewbold@robocracy.org> | 2023-12-18 20:24:25 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-18 20:24:25 +0400 |
commit | 8da5a375a502a49194b605f22646ad10bc9cdbb6 (patch) | |
tree | 45e5c3cdc6a426507ca862b4404a1885f8be5e5f /bskyweb/templates/post.html | |
parent | 0c47f6dc988efbd49907855ea0e9e165d50700ca (diff) | |
download | voidsky-8da5a375a502a49194b605f22646ad10bc9cdbb6.tar.zst |
tweak social card meta yet again (#2228)
- handle missing content (PWI opt-out) better - use opengraph "article" and "profile" types, not just website for everything - fix timestamps, and used indexed at not created at
Diffstat (limited to 'bskyweb/templates/post.html')
-rw-r--r-- | bskyweb/templates/post.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index 25a68c971..55a0679fb 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -10,8 +10,9 @@ {% block html_head_extra -%} {%- if postView -%} - <meta property="og:type" content="website"> <meta property="og:site_name" content="Bluesky Social"> + <meta property="og:type" content="article"> + <meta property="profile:username" content="{{ profileView.Handle }}"> {%- if requestURI %} <meta property="og:url" content="{{ requestURI }}"> {% endif -%} @@ -32,17 +33,20 @@ <meta name="twitter:card" content="summary"> {% endif %} <meta name="twitter:label1" content="Posted At"> - <meta name="twitter:value1" content="{{ postView.CreatedAt }}"> - <meta name="twitter:site" content="@bluesky"> + <meta name="twitter:value1" content="{{ postView.IndexedAt }}"> + <meta name="article:published_time" content="{{ postView.IndexedAt }}"> {% endif -%} {%- endblock %} {% block noscript_extra -%} +{%- if postView -%} <div id="bsky_post_summary"> <h3>Post</h3> <p id="bsky_display_name">{{ postView.Author.DisplayName }}</p> <p id="bsky_handle">{{ postView.Author.Handle }}</p> <p id="bsky_did">{{ postView.Author.Did }}</p> <p id="bsky_post_text">{{ postView.Record.Val.Text }}</p> + <p id="bsky_post_indexedat">{{ postView.IndexedAt }}</p> </div> +{% endif -%} {%- endblock %} |