feat(website): move descriptions into expand row on category pages

Removes inline .category-row-desc from the name cell and renders
entry.description inside .expand-content instead, matching the
index page pattern. Drops the now-unused CSS rules for
.category-row-desc and the overridden .category-table .expand-content
padding.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vinta Chen
2026-05-03 08:17:17 +08:00
parent 03db91bcd0
commit 033694204c
2 changed files with 3 additions and 39 deletions
+3 -4
View File
@@ -86,9 +86,6 @@
<a href="{{ entry.url }}" target="_blank" rel="noopener"
>{{ entry.name }}</a
>
{% if entry.description %}
<span class="category-row-desc">{{ entry.description | safe }}</span>
{% endif %}
<span class="mobile-cat"
>{% if entry.subcategories %}{{ entry.subcategories[0].name }}{%
else %}{{ category.name }}{% endif %}</span
@@ -152,7 +149,9 @@
<td></td>
<td colspan="4">
<div class="expand-content">
{% if entry.also_see %}
{% if entry.description %}
<div class="expand-desc">{{ entry.description | safe }}</div>
{% endif %} {% if entry.also_see %}
<div class="expand-also-see">
Also see: {% for see in entry.also_see %}<a
href="{{ see.url }}"