{% 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 %} {# Upstream main only outputs og:image when article.image is set — unfurlers often show a blank card. Always set an absolute image + JSON-LD. #} {% set _img = article.image|default('')|trim %} {% if _img == '' %} {% set _og_image = absolute_url(asset('og-image.jpg')) %} {% set _og_default_dims = true %} {% elseif _img starts with '//' %} {% set _og_image = 'https:' ~ _img %} {% set _og_default_dims = false %} {% else %} {% set _og_image = absolute_url(_img) %} {% set _og_default_dims = false %} {% endif %} {% set _desc = article.summary|default('')|striptags|u.truncate(159, '…') %} {% set _canonical = url('article-slug', {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 %} {% if is_granted('ROLE_ADMIN') %} {% endif %}
#}
{# {{ article.content }}#}
{# #}
{% set article_coordinate = '30023:' ~ article.pubkey ~ ':' ~ article.slug %}
{% set comments_query = article.eventId ? { coordinate: article_coordinate, e: article.eventId } : { coordinate: article_coordinate } %}
Loading comments…