tangled
alpha
login
or
join now
quilling.dev
/
social-app
7
fork
atom
An ATproto social media client -- with an independent Appview.
7
fork
atom
overview
issues
pulls
pipelines
feat: post.html structured content, wip
Elijah Seed-Arita
5 months ago
caa77360
655964ec
+35
1 changed file
expand all
collapse all
unified
split
bskyweb
templates
post.html
+35
bskyweb/templates/post.html
···
56
56
<meta property="article:published_time" content="{{ postView.IndexedAt }}">
57
57
<link rel="alternate" type="application/json+oembed" href="https://embed.bsky.app/oembed?format=json&url={{ postView.Uri | urlencode }}" />
58
58
<link rel="alternate" href="{{ postView.Uri }}" />
59
59
+
<script type="application/ld+json">
60
60
+
{
61
61
+
"@context": "https://schema.org",
62
62
+
"@type": "DiscussionForumPosting",
63
63
+
"author": {
64
64
+
"@type": "Person",
65
65
+
"name": "{{ postView.Author.DisplayName|escapejs }}",
66
66
+
"url": "https://bsky.app/@{{ postView.Author.Handle|escapejs }}"
67
67
+
},
68
68
+
{%- if postText %}
69
69
+
"text": "{{ postText|escapejs }}",
70
70
+
{% endif %}
71
71
+
{%- if imageThumbUrls %}
72
72
+
"image": "{{ imageThumbUrls[0]|escapejs }}",
73
73
+
{% endif %}
74
74
+
"datePublished": "{{ postView.IndexedAt|escapejs }}",
75
75
+
"interactionStatistic": [
76
76
+
{
77
77
+
"@type": "InteractionCounter",
78
78
+
"interactionType": "https://schema.org/LikeAction",
79
79
+
"userInteractionCount": {{ postView.LikeCount }}
80
80
+
},
81
81
+
{
82
82
+
"@type": "InteractionCounter",
83
83
+
"interactionType": "https://schema.org/CommentAction",
84
84
+
"userInteractionCount": {{ postView.ReplyCount }}
85
85
+
},
86
86
+
{
87
87
+
"@type": "InteractionCounter",
88
88
+
"interactionType": "https://schema.org/ShareAction",
89
89
+
"userInteractionCount": {{ postView.RepostCount + postView.QuoteCount }}
90
90
+
}
91
91
+
]
92
92
+
}
93
93
+
</script>
59
94
{%- elif requiresAuth and profileHandle -%}
60
95
<meta property="og:type" content="article">
61
96
<meta property="profile:username" content="{{ profileHandle }}">