2023-03-14 21:00:44 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
2023-05-11 17:41:47 +02:00
|
|
|
{% block head_title %}
|
|
|
|
{%- if profileView -%}
|
|
|
|
@{{ profileView.Handle }} on Bluesky
|
|
|
|
{%- else -%}
|
|
|
|
Bluesky
|
|
|
|
{%- endif -%}
|
|
|
|
{% endblock %}
|
|
|
|
|
2023-05-08 22:03:03 +02:00
|
|
|
{% block html_head_extra -%}
|
2023-03-14 21:00:44 +01:00
|
|
|
{%- if profileView -%}
|
2024-09-03 17:45:25 +02:00
|
|
|
<meta property="og:site_name" content="Zio Blue">
|
2023-12-18 17:24:25 +01:00
|
|
|
<meta property="og:type" content="profile">
|
|
|
|
<meta property="profile:username" content="{{ profileView.Handle }}">
|
2023-05-11 17:41:47 +02:00
|
|
|
{%- if requestURI %}
|
|
|
|
<meta property="og:url" content="{{ requestURI }}">
|
2023-05-08 22:03:03 +02:00
|
|
|
{% endif -%}
|
2023-05-11 17:41:47 +02:00
|
|
|
{%- if profileView.DisplayName %}
|
|
|
|
<meta property="og:title" content="{{ profileView.DisplayName }} (@{{ profileView.Handle }})">
|
|
|
|
{% else %}
|
|
|
|
<meta property="og:title" content="{{ profileView.Handle }}">
|
2023-05-08 22:03:03 +02:00
|
|
|
{% endif -%}
|
2023-05-11 17:41:47 +02:00
|
|
|
{%- if profileView.Description %}
|
|
|
|
<meta name="description" content="{{ profileView.Description }}">
|
|
|
|
<meta property="og:description" content="{{ profileView.Description }}">
|
|
|
|
{% endif -%}
|
|
|
|
{%- if profileView.Banner %}
|
|
|
|
<meta property="og:image" content="{{ profileView.Banner }}">
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
|
|
{%- elif profileView.Avatar -%}
|
|
|
|
{# Don't use avatar image in cards; usually looks bad #}
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
|
|
{% endif %}
|
|
|
|
<meta name="twitter:label1" content="Account DID">
|
2023-05-08 22:03:03 +02:00
|
|
|
<meta name="twitter:value1" content="{{ profileView.Did }}">
|
2023-12-23 21:38:21 +01:00
|
|
|
{%- if requestHost %}
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="https://{{ requestHost }}/profile/{{ profileView.Did }}/rss">
|
|
|
|
{% endif %}
|
2023-05-11 17:41:47 +02:00
|
|
|
{% endif -%}
|
2023-03-14 21:00:44 +01:00
|
|
|
{%- endblock %}
|
|
|
|
|
|
|
|
{% block noscript_extra -%}
|
2023-12-18 17:24:25 +01:00
|
|
|
{%- if profileView -%}
|
2023-05-08 22:03:03 +02:00
|
|
|
<div id="bsky_profile_summary">
|
|
|
|
<h3>Profile</h3>
|
|
|
|
<p id="bsky_display_name">{{ profileView.DisplayName }}</p>
|
|
|
|
<p id="bsky_handle">{{ profileView.Handle }}</p>
|
|
|
|
<p id="bsky_did">{{ profileView.Did }}</p>
|
|
|
|
<p id="bsky_profile_description">{{ profileView.Description }}</p>
|
|
|
|
</div>
|
2023-12-18 17:24:25 +01:00
|
|
|
{% endif -%}
|
2023-03-14 21:00:44 +01:00
|
|
|
{%- endblock %}
|