From 8da5a375a502a49194b605f22646ad10bc9cdbb6 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 18 Dec 2023 20:24:25 +0400 Subject: [PATCH] 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 --- bskyweb/templates/home.html | 1 + bskyweb/templates/post.html | 10 +++++++--- bskyweb/templates/profile.html | 6 ++++-- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html index 7beea49d9f..e06b3a4b08 100644 --- a/bskyweb/templates/home.html +++ b/bskyweb/templates/home.html @@ -8,6 +8,7 @@ + {%- endblock %} diff --git a/bskyweb/templates/post.html b/bskyweb/templates/post.html index 25a68c9718..55a0679fbd 100644 --- a/bskyweb/templates/post.html +++ b/bskyweb/templates/post.html @@ -10,8 +10,9 @@ {% block html_head_extra -%} {%- if postView -%} - + + {%- if requestURI %} {% endif -%} @@ -32,17 +33,20 @@ {% endif %} - - + + {% endif -%} {%- endblock %} {% block noscript_extra -%} +{%- if postView -%}

Post

{{ postView.Author.DisplayName }}

{{ postView.Author.Handle }}

{{ postView.Author.Did }}

{{ postView.Record.Val.Text }}

+

{{ postView.IndexedAt }}

+{% endif -%} {%- endblock %} diff --git a/bskyweb/templates/profile.html b/bskyweb/templates/profile.html index 4d4f679466..d324a265e7 100644 --- a/bskyweb/templates/profile.html +++ b/bskyweb/templates/profile.html @@ -10,8 +10,9 @@ {% block html_head_extra -%} {%- if profileView -%} - + + {%- if requestURI %} {% endif -%} @@ -33,11 +34,11 @@ {% endif %} - {% endif -%} {%- endblock %} {% block noscript_extra -%} +{%- if profileView -%}

Profile

{{ profileView.DisplayName }}

@@ -45,4 +46,5 @@

{{ profileView.Did }}

{{ profileView.Description }}

+{% endif -%} {%- endblock %}