Add Reference to Posts

Hi

I’ve been trying to write an academic post which involves with inserting many references but none worked after exploring different approaches.

Here are the steps I took:

  1. Add citations.bib under static and specify it in the toml, which successfully syncs the bib file.
  2. Create a post and tried many citing methods but none worked. Say I have this example item:
@article{smith2019,
  author = {Smith, John and Johnson, Sarah},
  title = {A Study on the Impact of Technology},
  journal = {Journal of Science},
  year = {2019},
  volume = {10},
  number = {2},
  pages = {123-145},
  doi = {10.123/journal.12345}
}

and I tried

{{< ref "smith2019" >}}
@smith2019

but neither worked.

  1. I would like to specify the style like adding .csl file.

Could someone help with it?

There are few posts on this forum about this question. Hugo is not designed to manage bibliographical references (like Pandoc + citeproc, or 11ty + Markdown-it-biblatex for examples). The unique solution is to use the wonderful but limited Hugo Cite (you can’t choose your CSL style). If you find another way, please tell me!