microblog.pub/templates/note.html

28 lines
1.4 KiB
HTML
Raw Permalink Normal View History

2018-05-18 18:41:41 +00:00
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
2019-09-08 13:19:43 +00:00
{% block title %}{{ config.NAME }}: "{{ note.activity.object.content | html2plaintext | trim | truncate(50) }}"{% endblock %}
2018-05-18 18:41:41 +00:00
{% block header %}
2019-09-08 13:19:43 +00:00
<meta name="description" content="{{ note.activity.object.content | html2plaintext | trim | truncate(50) }}">
2019-09-08 13:06:52 +00:00
2018-05-18 18:41:41 +00:00
<meta content="article" property="og:type" />
<meta content="{{ note.activity.object.url }}" property="og:url" />
2019-09-08 13:06:52 +00:00
<meta content="{{ config.USERNAME }} microblog" property="og:site_name" />
2018-05-18 18:41:41 +00:00
<meta content="{{ config.USERNAME }}" property="og:title" />
2019-09-08 13:19:43 +00:00
<meta content="{{ note.activity.object.content | html2plaintext | trim | truncate(50) }}" property="og:description" />
2018-05-18 18:41:41 +00:00
<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" />
{% endblock %}
{% block content %}
<div id="container">
{% if request.path != "/admin/thread" %}
2018-05-18 18:41:41 +00:00
{% include "header.html" %}
{% endif %}
2019-09-08 12:54:47 +00:00
<main>
2018-06-03 21:36:16 +00:00
{{ utils.display_thread(thread, likes=likes, shares=shares) }}
2019-09-08 12:54:47 +00:00
</main>
2018-05-18 18:41:41 +00:00
</div>
{% endblock %}
{% block links %}<link rel="alternate" href="{{ note.activity.object.id}}" type="application/activity+json">{% endblock %}