feat: display followers count if followers list is hidden #5

Merged
noah merged 1 commits from issue/followers-count-if-hidden into v2 2025-07-20 22:53:49 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,4 @@
<header id="header">
<div class="h-card p-author">
<data class="u-photo" value="{{ local_actor.icon_url }}"></data>
<a href="{{ local_actor.url }}" class="u-url u-uid no-hover title">
@@ -46,6 +45,8 @@
{% endif %}
{% if not HIDES_FOLLOWERS or is_admin %}
<li>{{ header_link("followers", "Followers") }} <span class="counter">{{ followers_count }}</span></li>
{% else %}
<li>Followers <span class="counter">{{ followers_count }} </span></li>
{% endif %}
{% if not HIDES_FOLLOWING or is_admin %}
<li>{{ header_link("following", "Following") }} <span class="counter">{{ following_count }}</span></li>
@@ -58,5 +59,4 @@
</nav>
</div>
</header>

View File

@@ -2,7 +2,7 @@
{% extends "layout.html" %}
{% block head %}
<title>{{ local_actor.display_name }}'s microblog</title>
<title>{{ local_actor.display_name }}'s posts.</title>
<link rel="indieauth-metadata" href="{{ url_for("well_known_authorization_server") }}">
<link rel="authorization_endpoint" href="{{ url_for("indieauth_authorization_endpoint") }}">
<link rel="token_endpoint" href="{{ url_for("indieauth_token_endpoint") }}">