{% extends "layouts/reader.njk" %} {% block reader %}
{{ icon("previous") }} {{ __("Back") }} {% if item.author %}
{% if item.author.photo %} {% endif %}
{% if item.author.url %} {{ item.author.name or item.author.url }} {% else %} {{ item.author.name or "Unknown" }} {% endif %} {% if item.published %} {% endif %}
{% endif %} {# Context for interactions #} {% if item["in-reply-to"] or item["like-of"] or item["repost-of"] or item["bookmark-of"] %}
{% if item["in-reply-to"] and item["in-reply-to"].length > 0 %}

{{ icon("reply") }} {{ __("Reply to") }}: {{ item["in-reply-to"][0] | replace("https://", "") | replace("http://", "") }}

{% endif %} {% if item["like-of"] and item["like-of"].length > 0 %}

{{ icon("like") }} {{ __("Liked") }}: {{ item["like-of"][0] | replace("https://", "") | replace("http://", "") }}

{% endif %} {% if item["repost-of"] and item["repost-of"].length > 0 %}

{{ icon("repost") }} {{ __("Reposted") }}: {{ item["repost-of"][0] | replace("https://", "") | replace("http://", "") }}

{% endif %} {% if item["bookmark-of"] and item["bookmark-of"].length > 0 %}

{{ icon("bookmark") }} {{ __("Bookmarked") }}: {{ item["bookmark-of"][0] | replace("https://", "") | replace("http://", "") }}

{% endif %}
{% endif %} {% if item.name %}

{{ item.name }}

{% endif %} {% if item.content %}
{% if item.content.html %} {{ item.content.html | safe }} {% else %} {{ item.content.text }} {% endif %}
{% endif %} {# Categories #} {% if item.category and item.category.length > 0 %}
{% for cat in item.category %} #{{ cat | replace("#", "") }} {% endfor %}
{% endif %} {# Photos #} {% if item.photo and item.photo.length > 0 %}
{% for photo in item.photo %} {% endfor %}
{% endif %} {# Video #} {% if item.video and item.video.length > 0 %}
{% for video in item.video %} {% endfor %}
{% endif %} {# Audio #} {% if item.audio and item.audio.length > 0 %}
{% for audio in item.audio %} {% endfor %}
{% endif %}
{% endblock %}