fix(blog): remove stray garden-badge includes from card footer and pagination

Three misplaced `{% include "components/garden-badge.njk" %}` calls were
rendering duplicate badges outside the post-type branches:

- One after the AI disclosure block (appeared at the bottom of every
  article card, next to "Read more")
- Two inside the pagination <nav> (between Previous/Next links)

The badge is already correctly included once per post-type branch
(article, note, like, bookmark, repost, reply, photo).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
svemagie
2026-03-16 22:28:59 +01:00
parent b0b87d24c4
commit 0dea517d16

View File

@@ -342,7 +342,6 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber
<span class="p-ai-code-level hidden">{{ postAiCode or "0" }}</span>
</span>
{% endif %}
{% include "components/garden-badge.njk" %}
</li>
{% endfor %}
</ul>
@@ -365,7 +364,6 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber
Previous
</span>
{% endif %}
{% include "components/garden-badge.njk" %}
{% if pagination.href.next %}
<a href="{{ pagination.href.next }}" class="pagination-link" aria-label="Next page">
@@ -378,7 +376,6 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>
</span>
{% endif %}
{% include "components/garden-badge.njk" %}
</div>
</nav>
{% endif %}