Create Bibliographies in Hugo with a shortcode
Created on 2023-02-06T04:46:33-06:00
- Create bibliography file for the article as a JSON document
- Use a front matter key to specify which JSON document holds the bibliography for an article
- Put shortcodes in your Hugo theme to cite or insert the references
- Have the shortcodes read the JSON and format appropriately
This does not do any kind of intelligent thing like only including references you actually cited. It's just transforming the JSON in to something printable on your site.
Pandoc and other tools may be used to pull citations from your library in to a JSON document for this particular article.