Skip to content

Commit

Permalink
default sort of date-modified
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulC91 committed Dec 1, 2023
1 parent 20a0e63 commit b22004f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ The following fields **must** be filled for each new item:
when the report or dashboard stops being updated with new data
- `author` the name of the group/team/person who is responsible for the content
- `date-created` the date the content was first pubished in format 'YYYY-MM-DD'.
By default, the gallery is sorted by status (active before archived) and then this date.
- `date-modified` the date the content was last modified/updated in format 'YYYY-MM-DD'.
By default, the gallery is sorted by status (active before archived) and then this date.
You can move your item to the top of the list by updating its modified date to the most
recent.

#### Optional fields

Expand All @@ -50,8 +53,6 @@ The following fields are optional but recommended:
- `categories` relevant categories that apply to the content like name of the disease for example.
Ensure you do not duplicate an existing category with a different spelling etc. Look at the existing
categories on the gallery page to verify.
- `date-modified` the date the content was last modified/updated in format 'YYYY-MM-DD'.
The gallery can be sorted by this date via the 'Order by' dropdown.
- `repo` a URL linking to the code repository of the project. This is not currently used but may be useful
in the future.

Expand Down
4 changes: 2 additions & 2 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ listing:
page-size: 1000
sort:
- "status"
- "date-created desc"
- "date-modified desc"
sort-ui: [title, date-created, date-modified]
filter-ui: true
field-required: [title, href, status, access, author, date-created]
field-required: [title, href, status, access, author, date-created, date-modified]
field-types:
date-created: date
date-modified: date
Expand Down

0 comments on commit b22004f

Please sign in to comment.