{# MaatLog author summary for the right rail. Uses ``maatlog.author_summaries``. Profile-page data (About, Interests, Stats, Featured) is deliberately absent: this component renders on every page, so it must stay cheap and short. The card is a macro because the "+N authors" disclosure repeats it. #} {%- macro maatlog_author_summary_card(author) -%}
{%- if author.avatar_url -%} {%- else -%} {%- endif -%}

{{ author.display_name|e }}

{%- if author.bio_short -%}

{{ author.bio_short|e }}

{%- endif -%} {%- with maatlog_author_links=author.links -%} {%- include "maatlog/components/author-links.html" -%} {%- endwith -%} {%- if author.profile_url -%} {{ _('View profile') }} {%- endif -%}
{%- endmacro -%} {%- set maatlog_summaries = maatlog.author_summaries -%} {%- if maatlog_summaries -%}

{{- _('Written by') if maatlog.page_kind == 'post' else _('Author') -}}

{%- for author in maatlog_summaries[:2] -%} {{ maatlog_author_summary_card(author) }} {%- endfor -%} {%- if maatlog_summaries|length > 2 -%} {#- ``
`` keeps the disclosure working without JavaScript, the same way ``maatlog-taxonomy-more`` does in the navigation sidebar. -#}
{%- set remaining = maatlog_summaries|length - 2 -%} +{{ remaining }} {{ _('author') if remaining == 1 else _('authors') }} {%- for author in maatlog_summaries[2:] -%} {{ maatlog_author_summary_card(author) }} {%- endfor -%}
{%- endif -%}
{%- endif -%}