mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at verify-code 55 lines 2.0 kB view raw
1{% extends "base.html" %} 2 3{% block head_title %} 4{%- if postView -%} 5 @{{ postView.Author.Handle }} on Bluesky 6{%- else -%} 7 Bluesky 8{%- endif -%} 9{% endblock %} 10 11{% block html_head_extra -%} 12{%- if postView -%} 13 <meta property="og:type" content="article"> 14 <meta property="profile:username" content="{{ profileView.Handle }}"> 15 {%- if requestURI %} 16 <meta property="og:url" content="{{ requestURI }}"> 17 {% endif -%} 18 {%- if postView.Author.DisplayName %} 19 <meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})"> 20 {% else %} 21 <meta property="og:title" content="@{{ postView.Author.Handle }}"> 22 {% endif -%} 23 {%- if postText %} 24 <meta name="description" content="{{ postText }}"> 25 <meta property="og:description" content="{{ postText }}"> 26 {% endif -%} 27 {%- if imgThumbUrls %} 28 {% for imgThumbUrl in imgThumbUrls %} 29 <meta property="og:image" content="{{ imgThumbUrl }}"> 30 {% endfor %} 31 <meta name="twitter:card" content="summary_large_image"> 32 {%- elif postView.Author.Avatar %} 33 {# Don't use avatar image in cards; usually looks bad #} 34 <meta name="twitter:card" content="summary"> 35 {% endif %} 36 <meta name="twitter:label1" content="Posted At"> 37 <meta name="twitter:value1" content="{{ postView.IndexedAt }}"> 38 <meta name="article:published_time" content="{{ postView.IndexedAt }}"> 39 <meta name="article:published_time" content="{{ postView.IndexedAt }}"> 40 <link rel="alternate" type="application/json+oembed" href="https://embed.bsky.app/oembed?format=json&url={{ postView.Uri | urlencode }}" /> 41{% endif -%} 42{%- endblock %} 43 44{% block noscript_extra -%} 45{%- if postView -%} 46<div id="bsky_post_summary"> 47 <h3>Post</h3> 48 <p id="bsky_display_name">{{ postView.Author.DisplayName }}</p> 49 <p id="bsky_handle">{{ postView.Author.Handle }}</p> 50 <p id="bsky_did">{{ postView.Author.Did }}</p> 51 <p id="bsky_post_text">{{ postText }}</p> 52 <p id="bsky_post_indexedat">{{ postView.IndexedAt }}</p> 53</div> 54{% endif -%} 55{%- endblock %}