mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
40 lines
1.7 KiB
HTML
40 lines
1.7 KiB
HTML
{% extends "layout.html" %}
|
|
{% import 'utils.html' as utils %}
|
|
{% block header %}
|
|
<link rel="self" href="{{ config.ID }}/">
|
|
<link rel="hub" href="https://pubsubhubbub.superfeedr.com/">
|
|
<meta content="profile" property="og:type" />
|
|
<meta content="{{ config.ID }}" property="og:url" />
|
|
<meta content="{{ config.USERNAME }}" property="og:site_name" />
|
|
<meta content="{{ config.USERNAME }}" property="og:title" />
|
|
<meta content="{{ me.summary | html2plaintext }}" property="og:description" />
|
|
<meta content="{{ me.icon.url }}" property="og:image" />
|
|
<meta content="200" property="og:image:width" />
|
|
<meta content="200" property="og:image:height" />
|
|
<meta content="summary" property="twitter:card" />
|
|
<meta content="{{config.USERNAME}}@{{ config.DOMAIN}}" property="profile:username" />
|
|
{% endblock %}
|
|
{% block content %}
|
|
<div class="h-feed" id="container">
|
|
<data class="p-name" value="{{config.USERNAME}} notes"></data>
|
|
|
|
{% include "header.html" %}
|
|
|
|
<div id="notes">
|
|
{% for item in outbox_data %}
|
|
|
|
{% if item | has_type('Announce') %}
|
|
{% set boost_actor = item.activity.actor | get_actor %}
|
|
<p style="margin-left:65px;padding-bottom:5px;"><span class="bar-item-no-hover"><a style="color:#808080;" href="{{ boost_actor.url }}">{{ boost_actor.name }}</a> boosted</span></p>
|
|
{% if item.meta.object %}
|
|
{{ utils.display_note(item.meta.object, ui=False) }}
|
|
{% endif %}
|
|
{% elif item | has_type('Create') %}
|
|
{{ utils.display_note(item.activity.object, meta=item.meta, no_color=True) }}
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|