I am a beginner in Jekyll and this is my first post. Apologies if you find it trivial. I am building a scientific tutorial with Jekyll and I would like to include a list of references. I have a “tutorial-entry” collection, and I would like to find a simple way to optionally include a bibliography at the end of each tutorial-entry.
I can not use plugins, as my site is hosted by GitHub, so I thought I would proceed as follows:
- Create a “references” collection, with a “reference-id”, and a “reference-text”
- In a tutorial-entry, link to the reference using “reference-id”
- At the end of the tutorial-entry, browse all the "reference-id"s that have been linked in the entry, and produce a list of references using the corresponding “reference-text” attribute
My questions are:
- Do you think this is feasible? Do you have better ways for achieving this task without plugins?
- I am stuck with step 3. above, as I would have to loop over all the "reference-id"s that have been linked in the particular tutorial-entry, and I simply do not know how to do it. Do you have any examples I could look into? I have searched quite a lot around, and all I found was ways to create a “table of content”, which do not apply to me, as I do not want to loop over all _references, but only over the ones that have been used in the current tutorial-entry.
Thanks in advance for your help