mirror of
https://github.com/vinta/awesome-python.git
synced 2026-11-10 01:34:28 -06:00
fix: show the parent category in the mobile label under entry names
On phones the label under each project name showed its subcategory, and names like "General", "Synchronous", or "Core" only make sense under their category heading, so the home and group tables showed vague labels. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
>{{ entry.name }}</a
|
||||
>
|
||||
<span class="mobile-cat{% if grouped_page and (not entry.subcategories or category_urls[entry.subcategories[0].value.split(' > ')[0]] == section_path) %} repeats-heading{% endif %}"
|
||||
>{% if entry.subcategories %}{{ entry.subcategories[0].name }}{%
|
||||
>{% if entry.subcategories %}{{ entry.subcategories[0].value.split(' > ')[0] }}{%
|
||||
else %}{{ entry.categories[0] if home else category.name }}{% endif %}</span
|
||||
>
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user