diff --git a/website/static/style.css b/website/static/style.css index 8bba04b0..73f035f6 100644 --- a/website/static/style.css +++ b/website/static/style.css @@ -761,6 +761,11 @@ kbd { justify-self: end; } +/* Single-project pages drop the order note, so keep the note in the last column */ +.results-note:only-child { + grid-column: -2 / -1; +} + .controls { display: grid; gap: 0.85rem; diff --git a/website/templates/category.html b/website/templates/category.html index fdbfb18a..943ea000 100644 --- a/website/templates/category.html +++ b/website/templates/category.html @@ -210,20 +210,21 @@ {% include "_sponsor_band.html" %}
+ {% set single_entry = entries | length == 1 %}
- {% if entry_groups %} + {% if entry_groups and not single_entry %} {% set named_groups = entry_groups | selectattr("name") | list %}

{% if group_categories %}Listed by section, in editorial order.{% elif named_groups %}Listed in editorial order, grouped by use case.{% else %}Listed in editorial order.{% endif %} Click a column header to re-sort the whole list.

- {% else %} + {% elif not entry_groups %}
-

{{ entries | length }} {{ category.name }} projects

+

{{ entries | length }} {{ category.name }} project{{ "s" if not single_entry }}

{% endif %}

- Press / to search. Tags open their category. Click a row for + {% if not single_entry %}Press / to search. {% endif %}Tags open their category. Click a row for details.

@@ -248,8 +249,8 @@