2023-03-14 21:00:44 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2023-05-11 17:41:47 +02:00
|
|
|
{% block head_title %}
|
|
|
|
{%- if postView -%}
|
|
|
|
@{{ postView.Author.Handle }} on Bluesky
|
|
|
|
{%- else -%}
|
|
|
|
Bluesky
|
|
|
|
{%- endif -%}
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-05-08 22:03:03 +02:00
|
|
|
{% block html_head_extra -%}
|
2023-05-11 17:41:47 +02:00
|
|
|
{%- if postView -%}
|
|
|
|
<meta property="og:site_name" content="Bluesky Social">
|
2023-12-18 17:24:25 +01:00
|
|
|
<meta property="og:type" content="article">
|
|
|
|
<meta property="profile:username" content="{{ profileView.Handle }}">
|
2023-05-11 17:41:47 +02:00
|
|
|
{%- if requestURI %}
|
|
|
|
<meta property="og:url" content="{{ requestURI }}">
|
|
|
|
{% endif -%}
|
|
|
|
{%- if postView.Author.DisplayName %}
|
|
|
|
<meta property="og:title" content="{{ postView.Author.DisplayName }} (@{{ postView.Author.Handle }})">
|
|
|
|
{% else %}
|
|
|
|
<meta property="og:title" content="@{{ postView.Author.Handle }}">
|
2023-05-08 22:03:03 +02:00
|
|
|
{% endif -%}
|
2024-01-23 22:04:22 +01:00
|
|
|
{%- if postText %}
|
|
|
|
<meta name="description" content="{{ postText }}">
|
|
|
|
<meta property="og:description" content="{{ postText }}">
|
2023-05-08 22:03:03 +02:00
|
|
|
{% endif -%}
|
2023-12-27 18:13:53 +01:00
|
|
|
{%- if imgThumbUrls %}
|
|
|
|
{% for imgThumbUrl in imgThumbUrls %}
|
2023-05-11 17:41:47 +02:00
|
|
|
<meta property="og:image" content="{{ imgThumbUrl }}">
|
2023-12-27 18:13:53 +01:00
|
|
|
{% endfor %}
|
2023-05-11 17:41:47 +02:00
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
{%- elif postView.Author.Avatar %}
|
|
|
|
{# Don't use avatar image in cards; usually looks bad #}
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
|
|
{% endif %}
|
|
|
|
<meta name="twitter:label1" content="Posted At">
|
2023-12-18 17:24:25 +01:00
|
|
|
<meta name="twitter:value1" content="{{ postView.IndexedAt }}">
|
|
|
|
<meta name="article:published_time" content="{{ postView.IndexedAt }}">
|
2023-05-08 22:03:03 +02:00
|
|
|
{% endif -%}
|
2023-03-14 21:00:44 +01:00
|
|
|
{%- endblock %}
|
|
|
|
|
|
|
|
{% block noscript_extra -%}
|
2023-12-18 17:24:25 +01:00
|
|
|
{%- if postView -%}
|
2023-05-08 22:03:03 +02:00
|
|
|
<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>
|
2024-01-23 22:04:22 +01:00
|
|
|
<p id="bsky_post_text">{{ postText }}</p>
|
2023-12-18 17:24:25 +01:00
|
|
|
<p id="bsky_post_indexedat">{{ postView.IndexedAt }}</p>
|
2023-05-08 22:03:03 +02:00
|
|
|
</div>
|
2023-12-18 17:24:25 +01:00
|
|
|
{% endif -%}
|
2023-03-14 21:00:44 +01:00
|
|
|
{%- endblock %}
|