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
-3
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 class="p-ai-code-level hidden">{{ postAiCode or "0" }}</span>
</span> </span>
{% endif %} {% endif %}
{% include "components/garden-badge.njk" %}
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
@@ -365,7 +364,6 @@ permalink: "blog/{% if pagination.pageNumber > 0 %}page/{{ pagination.pageNumber
Previous Previous
</span> </span>
{% endif %} {% endif %}
{% include "components/garden-badge.njk" %}
{% if pagination.href.next %} {% if pagination.href.next %}
<a href="{{ pagination.href.next }}" class="pagination-link" aria-label="Next page"> <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> <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> </span>
{% endif %} {% endif %}
{% include "components/garden-badge.njk" %}
</div> </div>
</nav> </nav>
{% endif %} {% endif %}