{% extends 'base.html.twig' %} {% block title %}{{ article.title|trim }} — {{ website_name }}{% endblock %} {% block meta_description %} {% set _desc = article.summary|default('')|striptags|u.truncate(159, '…') %} {% endblock %} {% block ogtags %} {# Same resolution as card heroes (article image → kind-0 picture → site OG JPEG); absolute URL for unfurlers. #} {% set _og = article_og_image(article.image, article.pubkey) %} {% set _og_image = _og.href %} {% set _og_default_dims = _og.use_default_dimensions %} {% set _desc = article.summary|default('')|striptags|u.truncate(159, '…') %} {% set _canonical = url('article', { npub: npub|default(npub_from_hex(article.pubkey)), slug: article.slug }) %} {% set _author_name = '' %} {% if author is defined and author %} {% set _author_name = attribute(author, 'name')|default(attribute(author, 'display_name')|default('')) %} {% endif %} {% if _og_image starts with 'https://' %} {% endif %} {% if _og_default_dims %} {% endif %} {% endblock %} {% block body %} {% set article_coordinate = (article.kind ? article.kind.value : 30023) ~ ':' ~ (article.pubkey|lower) ~ ':' ~ article.slug %}
#}
{# {{ article.content }}#}
{# #}
{% set comments_query = { coordinate: article_coordinate, title: article.title|default('') }|merge(article.eventId ? { e: article.eventId } : {}) %}
{% set _reply_ctx = comments_data.comment_reply_context|default(comment_reply_context|default(null)) %}
{% include 'components/Molecules/ArticleReplyComposer.html.twig' with { comment_reply_context: _reply_ctx } only %}
Loading comments…
{% endif %}