mirror of
https://github.com/svemagie/blog-eleventy-indiekit.git
synced 2026-04-02 08:44:56 +02:00
fix: restore horizontal layout for post categories
The accessibility change from <span> to <ul> caused categories to stack vertically. Add flex utilities to maintain horizontal flow while keeping the semantic list markup and ARIA attributes. Confab-Link: http://localhost:8080/sessions/0ec83454-d346-4329-8aaf-6b12139bf596
This commit is contained in:
@@ -24,7 +24,7 @@ withBlogSidebar: true
|
||||
{{ date | dateDisplay }}
|
||||
</time></time-difference>
|
||||
{% if category %}
|
||||
<ul class="post-categories" role="list" aria-label="Categories">
|
||||
<ul class="post-categories flex flex-wrap gap-2 list-none p-0 m-0" role="list" aria-label="Categories">
|
||||
{# Handle both string and array categories #}
|
||||
{% if category is string %}
|
||||
<li><a href="/categories/{{ category | slugify }}/" class="p-category">{{ category }}</a></li>
|
||||
|
||||
Reference in New Issue
Block a user