neurolibre / neurolibre.com

Website for NeuroLibre.
https://www.neurolibre.com/
MIT License
5 stars 2 forks source link

Taxonomy, content and cards #10

Open agahkarakuzu opened 4 years ago

agahkarakuzu commented 4 years ago

Managing tags

By default tags are scraped from the front matter of the markdown files in the content directory, whereas we create cards based on the yaml 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

image

On hover

image

Feel free to suggest styling changes.

agahkarakuzu commented 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.

pbellec commented 4 years ago

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.

SamGuay commented 4 years ago

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

  1. 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.

  1. 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 the et al. For tags, we could add ... instead of et al...

Varia:

  1. I added a comma between each author to make authors easily distinguishable, could add the same thing for the tags as well if you think it is worth it.

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.