{% extends 'base.html.twig' %} {% block body %}
{% include 'partial/author_profile_header.html.twig' with { author: author, npub: npub, show_nip05: true, profile_websites: profile_websites, profile_nip05: profile_nip05, profile_payment_links: profile_payment_links, } only %}
{% if pagination is defined and pagination.last_page > 1 %} {% set _page = pagination.page|default(1) %} {% set _last = pagination.last_page|default(1) %} {% set _prev_url = _page > 1 ? path('author-profile', _page > 2 ? { npub: npub, page: _page - 1 } : { npub: npub }) : null %} {% set _next_url = _page < _last ? path('author-profile', { npub: npub, page: _page + 1 }) : null %} {% include 'components/Molecules/Pagination.html.twig' with { page: _page, last_page: _last, prev_url: _prev_url, next_url: _next_url, aria_label: 'Author articles pagination', } only %} {% endif %}
{% endblock %} {% block aside %} {% endblock %}