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

anchoring to the directory entries no longer works #242

Open
drmowinckels opened this issue Oct 7, 2023 · 1 comment
Open

anchoring to the directory entries no longer works #242

drmowinckels opened this issue Oct 7, 2023 · 1 comment
Assignees

Comments

@drmowinckels
Copy link
Member

I'm not sure why. Maybe it takes too long to populate?

Anyway, if we cannot anchor to the entires, I no longer feel we can use Hugo data templates for the directory. I think its super important that people can actually link to a specific entry.

To do that, we'll need to alter the entire way the directory works, meaning changes to the website and the private directory repo.
My idea would be to treat the directory as content/directory, and have each person be their own page. I think we can use page bundles and have each entry look something like this:

content/directory/
- index.md
- profile.png

The main directory data would then be saved as yaml, rather than json. This way, we could also open up for people to write more "free text" to be in their main md content, something we dont have now.

---
name: Athanasia Mo Mowinckel
createdTime: '2023-05-15T06:05:31.000Z'
honorific: Doctor of Philosophy (PhD)
pronouns: She/Her
contact_method:
 - github
 - website
 - mastodon
featured: true
interests:
 - R
 - Research
 - Software Engineering
 - Data Management
 - Bioinformatics
 - Cognitive Science
 - Reproducible Research
languages:
 - English
 - Norwegian
 - Swedish
last_updated: '2023-05-15'
social_media:
 github: drmowinckels
 mastodon: https://fosstodon.org/@Drmowinckels
 twitter: drmowinckels
 website: www.drmowinckels.io
work:
 department: LCBC
 organisation: University of Oslo
 title: Staff Scientist & RSE
 url: https://oslobrains.no
location:
 city: Oslo
 country: Norway
r_groups:
 R-Ladies Oslo: https://www.meetup.com/rladies-oslo/
 Oslo useR! group: https://www.meetup.com/oslo-user-group/
activities:
 r_groups:
   R-Ladies Oslo: https://www.meetup.com/rladies-oslo/
   Oslo useR! group: https://www.meetup.com/oslo-user-group/
 r_packages:
   ggseg: https://ggseg.r-universe.dev/builds
   nettskjemar: https://lcbc-uio.github.io/nettskjemar/
   uiothemes: https://www.capro.dev/uiothemes/
photo:
 url: directory/athanasia-mo-mowinckel.png
---

I am super cool and love R. My cat is awesome and so is my wife.

with this format, the hugo template for the cards should not substantially change, the json and yaml keys should be indexed mych the same way as long as the source data is linked to correctly.

@drmowinckels
Copy link
Member Author

I'd love input on this from @rladies/website . Its a big undertaking.
If we do this, we'd need to

  1. change the current directory content from json to yaml
  2. change R airtable script in the directory to create yaml in stead of json
    ** (or can we be lazy and implement a json to yaml conversion)
  3. change the directory layout to use {{ Params }} in stead of hugo data

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

4 participants