Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taxonomy, content and cards #10

Open
agahkarakuzu opened this issue Mar 30, 2020 · 3 comments
Open

Taxonomy, content and cards #10

agahkarakuzu opened this issue Mar 30, 2020 · 3 comments

Comments

@agahkarakuzu
Copy link
Member

agahkarakuzu commented Mar 30, 2020

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:

  • Tutorial
  • Paper

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
Copy link
Member Author

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
Copy link
Member

pbellec commented Mar 30, 2020

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
Copy link
Collaborator

SamGuay commented Apr 7, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants