jirelations / Millennial

Millennial Jekyll theme for course websites. A minimalist Jekyll theme for running a blog or publication powered by Jekyll and GitHub Pages
https://lenpaul.github.io/Millennial/
MIT License
0 stars 9 forks source link

Readings from spreadsheet don't show up in Jekyll #37

Open nathangibson opened 5 months ago

nathangibson commented 5 months ago

@YSL4L Could you check into this please?

I use a CSV spreadsheet to plan out all the class sessions, where I put the title, objective, readings, image, etc. It is working for other things but not for the readings.

For example, the readings listed as [beckingBoundariesIsraeliteMonotheism2008a, langMonotheismus1998a] in Row 3 (session 2) here https://github.com/jirelations/Millennial/blob/71f5a669073bd771d882c6a4199323c78911873e/_data/sessions.csv#L3

should appear as links under "Suggested Readings" like this screenshot.

Screenshot 2024-04-22 at 09 29 13

Instead they are blank like this

Screenshot 2024-04-22 at 09 30 12

My workaround is that I put the line zotero-readings: [beckingBoundariesIsraeliteMonotheism2008a, langMonotheismus1998a] in the frontmatter of the relevant post. Still, it should work without this. I think it might have something to do with escaping commas or brackets in the CSV file.

Here's what's supposed to happen:

This line creates the sessions variable with the content from the line in sessions.csv that matches the session number in the post's frontmatter.

https://github.com/jirelations/Millennial/blob/71f5a669073bd771d882c6a4199323c78911873e/_layouts/post.html#L5

Then this line says to create the zotero-readings variable from the zotero-readings column of the spreadsheet, but it is overridden by the zotero-readings frontmatter in the post if any is there.

https://github.com/jirelations/Millennial/blob/71f5a669073bd771d882c6a4199323c78911873e/_layouts/post.html#L12

Then this line says to get the item from _data/zotero.yaml that matches the ID mentioned in each of the items in the zotero-readings variable.

https://github.com/jirelations/Millennial/blob/71f5a669073bd771d882c6a4199323c78911873e/_includes/readings.html#L6

Can you figure out what's wrong?