microblog.pub/app/templates/index.html

47 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2022-06-22 18:11:22 +00:00
{%- import "utils.html" as utils with context -%}
{% extends "layout.html" %}
2022-06-26 19:54:07 +00:00
{% block head %}
2022-07-15 18:01:55 +00:00
<title>{{ local_actor.display_name }}'s microblog</title>
2022-07-10 09:04:28 +00:00
<link rel="indieauth-metadata" href="{{ url_for("well_known_authorization_server") }}">
<link rel="authorization_endpoint" href="{{ url_for("indieauth_authorization_endpoint") }}">
<link rel="token_endpoint" href="{{ url_for("indieauth_token_endpoint") }}">
<link rel="micropub" href="{{ url_for("micropub_endpoint") }}">
2022-06-26 19:54:07 +00:00
<link rel="alternate" href="{{ local_actor.url }}" title="ActivityPub profile" type="application/activity+json">
<meta content="profile" property="og:type" />
<meta content="{{ local_actor.url }}" property="og:url" />
<meta content="{{ local_actor.display_name }}'s microblog" property="og:site_name" />
<meta content="Homepage" property="og:title" />
2022-06-27 06:30:29 +00:00
<meta content="{{ local_actor.summary | html2text | trim }}" property="og:description" />
2022-06-26 19:54:07 +00:00
<meta content="{{ local_actor.url }}" property="og:image" />
<meta content="summary" property="twitter:card" />
<meta content="{{ local_actor.handle }}" property="profile:username" />
{% endblock %}
2022-06-22 18:11:22 +00:00
{% block content %}
{% include "header.html" %}
2022-06-26 19:54:07 +00:00
<div class="h-feed">
<data class="p-name" value="{{ local_actor.display_name}}'s notes"></data>
2022-06-22 18:11:22 +00:00
{% for outbox_object in objects %}
{% if outbox_object.ap_type in ["Note", "Article", "Video", "Question"] %}
2022-06-22 18:11:22 +00:00
{{ utils.display_object(outbox_object) }}
2022-07-03 20:42:14 +00:00
{% elif outbox_object.ap_type == "Announce" %}
<div class="shared-header"><strong>{{ local_actor.display_name }}</strong> shared</div>
{{ utils.display_object(outbox_object.relates_to_anybox_object) }}
{% endif %}
2022-06-22 18:11:22 +00:00
{% endfor %}
2022-06-26 19:54:07 +00:00
</div>
2022-06-22 18:11:22 +00:00
2022-07-09 07:33:34 +00:00
<div class="box">
{% if has_previous_page %}
<a href="{{ url_for("index") }}?page={{ current_page - 1 }}">Previous</a>
{% endif %}
2022-06-22 18:11:22 +00:00
2022-07-09 07:33:34 +00:00
{% if has_next_page %}
<a href="{{ url_for("index") }}?page={{ current_page + 1 }}">Next</a>
{% endif %}
</div>
2022-06-22 18:11:22 +00:00
{% endblock %}