mirror of
https://github.com/svemagie/indiekit-endpoint-activitypub.git
synced 2026-04-02 15:44:58 +02:00
document.njk already renders title as h1 via the heading macro. All 14 AP templates were also calling heading() with level 1 inside their content block, producing two h1 elements per page. Removed the redundant calls and moved dynamic count prefixes into the title variable in followers/following controllers.
25 lines
829 B
Plaintext
25 lines
829 B
Plaintext
{% extends "document.njk" %}
|
|
|
|
{% from "heading/macro.njk" import heading with context %}
|
|
{% from "card/macro.njk" import card with context %}
|
|
{% from "prose/macro.njk" import prose with context %}
|
|
{% from "pagination/macro.njk" import pagination with context %}
|
|
|
|
{% block content %}
|
|
{% if followers.length > 0 %}
|
|
{% for follower in followers %}
|
|
{{ card({
|
|
title: follower.name or follower.handle or follower.actorUrl,
|
|
url: follower.actorUrl,
|
|
photo: { url: follower.avatar, alt: follower.name } if follower.avatar,
|
|
description: { text: "@" + follower.handle if follower.handle },
|
|
published: follower.followedAt
|
|
}) }}
|
|
{% endfor %}
|
|
|
|
{{ pagination(cursor) if cursor }}
|
|
{% else %}
|
|
{{ prose({ text: __("activitypub.noFollowers") }) }}
|
|
{% endif %}
|
|
{% endblock %}
|