Open agahkarakuzu opened 4 years ago
Forget to mention, right now both badges are pointing to a custom url
described in the /data/yaml
. This will change to repo_name.neurolibre.com
and github.com/neurolibre/repo_name
using urlize
once the respective works are complete.
easy ones: reverse chronological order: Yes Limit the number of cards: Yes
Re tags: I am not completely clear. It feels like it would be useful to let authors define a set of keywords (and trying to use existing ones in priority), e.g. MRI, diffusion, calcium imaging, electrophysiology, etc
We will then need to come up with a system to "compactify" the tags, in case they are too long. This is also a problem we will have with author list.
I wasn't sure if you needed any help with the above, but I had a bit of time tonight so I've tried a couple of things to render as mentioned above.
In my branch, I have made those changes for you to comment:
easy ones: reverse chronological order: Yes
- Cards (each .yaml file) are now sorted in reverse chronological order based on the date specified in the .yaml file.
We will then need to come up with a system to "compactify" the tags, in case they are too long. This is also a problem we will have with the author list.
- I identified a strategy that could work for both the author list and the tag list. Put simply, the first X authors/tags are displayed, then after X, a
, et al.
is added. All the authors left are added within the hover section of theet al.
For tags, we could add...
instead of et al...
Varia:
Number of the cards Do we like to restrict the amount cards are displayed on the main page? I haven't touch it yet... But how many cards would it take before we think it is too many?
PS: I edited the dates on the card to test it the sorting order was ok. You can revert it back to 2020-03-26.
Managing tags
By default
tags
are scraped from the front matter of the markdown files in thecontent
directory, whereas we create cards based on theyaml
files in/data
. This requires dealing with tags manually. The following are the tags @pbellec suggested, open for wording suggestions:Ordering of the cards
I think reverse chronological order makes sense?
Number of the cards
Do we like to restrict the amount cards are displayed on the main page?
Card style
Static
On hover
Feel free to suggest styling changes.