You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
2.3 KiB

{% extends 'base.html.twig' %}
{% block body %}
<div class="featured-authors">
<header class="featured-authors__intro">
<h1>Featured authors</h1>
<p class="text-subtle">
Authors whose long-form has been placed in a magazine category receive a
<abbr title="NIP-05">NIP-05</abbr> identifier
{% if nip05_domain|default('')|trim != '' %}
under <strong>{{ nip05_domain|e }}</strong>
{% endif %}
for easier discovery. Verification uses <code>/.well-known/nostr.json</code>.
</p>
</header>
{% for row in authors %}
{% set _fa_label = row.author.name|default('')|trim != '' ? row.author.name : (row.npub|shortenNpub) %}
<article class="featured-authors__card" aria-label="{{ _fa_label|e('html_attr') }}">
<div class="author-profile author-profile--featured">
{% include 'partial/author_profile_header.html.twig' with {
author: row.author,
npub: row.npub,
header_tag: 'h2',
show_nip05: false,
profile_nip05: [],
profile_websites: row.profile_websites,
profile_payment_links: row.profile_payment_links,
jumble_profile_href: row.jumble_profile_href,
omit_jumble_button: true,
} only %}
</div>
<div class="featured-authors__actions">
{% if row.jumble_profile_href is not null and row.jumble_profile_href != '' %}
<a class="btn btn-secondary" href="{{ row.jumble_profile_href|e('html_attr') }}" target="_blank" rel="nofollow noopener noreferrer">View on Jumble</a>
{% endif %}
<a class="btn btn-secondary" href="{{ path('author-profile', { npub: row.npub }) }}">Full profile</a>
</div>
</article>
{% else %}
<p class="text-subtle">No featured authors are listed yet. They appear when authors are added to magazine category indices and synced.</p>
{% endfor %}
</div>
{% endblock %}
{% block aside %}
{% endblock %}