diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-02 18:52:52 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-02 18:52:52 +0100 |
| commit | 0732339a113722a549dd0fa36fba54b8f3e83769 (patch) | |
| tree | 63e5e368813a7461080d599e8db91e97a8a60087 | |
| parent | 9ac6bb794d34e621f8fec8c742eabeb8f410e363 (diff) | |
nicer display of group names
| -rw-r--r-- | examples/db.json | 4 | ||||
| -rw-r--r-- | 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] %} <section class="resource-category {{group}}"> <header> - <h2>{{group | capitalize}}</h2> + <h2> + {% assign group_parts = group | split: "-" %} + {% for name_part in group_parts %} + {{ name_part | capitalize }} + {% endfor %} + </h2> </header> <ol class="resource-list"> {% for data in members %} |
