From 0732339a113722a549dd0fa36fba54b8f3e83769 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Mar 2021 18:52:52 +0100 Subject: nicer display of group names --- examples/db.json | 4 ++-- themes/okadmin/templates/index.liquid | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/db.json b/examples/db.json index a0a7eb3..4978a67 100644 --- a/examples/db.json +++ b/examples/db.json @@ -360,14 +360,14 @@ "id": "sample-1", "title": "Sample 1", "artist": "alexandra-leykauf", - "__index": 1, + "__index": 0, "dateCreated": "Tue, 02 Mar 2021 17:31:33 GMT" }, { "id": "sample-2", "title": "Sample 2", "artist": "alexandra-leykauf", - "__index": 0, + "__index": 1, "dateCreated": "Tue, 02 Mar 2021 17:31:37 GMT" }, { diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid index dcd4989..0d7749f 100644 --- a/themes/okadmin/templates/index.liquid +++ b/themes/okadmin/templates/index.liquid @@ -26,7 +26,12 @@ {% assign members = pair[1] %}
-

{{group | capitalize}}

+

+ {% assign group_parts = group | split: "-" %} + {% for name_part in group_parts %} + {{ name_part | capitalize }} + {% endfor %} +

    {% for data in members %} -- cgit v1.2.3-70-g09d2