{% extends 'layout.html.twig' %} {% block ogtags %} {% if article.image %} {% endif %} {% endblock %} {% block body %} {% if magazine is defined %} {% endif %}
{% if canEdit %} Edit article {% endif %} {% if app.user %} {% endif %} {# Zap Button with split payment support #} {% set zapSplits = article.advancedMetadata.zapSplits|default([]) %} {% if zapSplits|length > 0 %} {# Display split payment indicator #} {% if zapSplits|length > 0 %} (Split between {{ zapSplits|length + 1 }} recipients) {% endif %} {% endif %} {# Highlights toggle button #} {% if highlights is defined and highlights|length > 0 %} {% endif %}

{{ article.title }}

{% if author %} {% endif %}
{{ article.summary }}
{% if article.image %}
{{ article.title }}
{% endif %}
0 %} data-highlights="{{ highlights|json_encode|e('html_attr') }}" {% endif %}> {{ content|raw }}
{% if article.topics|length > 0 %}
{% for tag in article.topics %} {% if tag is not empty %} #{{ tag }} {% endif %} {% endfor %}
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
            {{ article.raw|json_encode(constant('JSON_PRETTY_PRINT')) }}
        
{% endif %} {# Mobile highlights - shown after comments on narrow screens #} {% if highlights is defined and highlights|length > 0 %}

Highlights ({{ highlights|length }})

{% for highlight in highlights %}
{% if highlight.pubkey %} {% else %} Anonymous {% endif %} {{ highlight.created_at|date('M j') }}
{% if highlight.context %} {% set htmlContext = highlight.context|markdown_to_html %} {% if highlight.content in highlight.context %} {% set wrapper = '' ~ highlight.content ~ '' %} {% set rendered = htmlContext|replace({ (highlight.content): wrapper }) %} {{ rendered|raw }} {% else %}
{{ htmlContext|raw }}
{{ highlight.content }} {% endif %} {% else %} {{ highlight.content }} {% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block aside %} {% if highlights is defined and highlights|length > 0 %} {% endif %} {#

Suggestions

#} {# #} {% endblock %}