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

Bake in citations at build time #132

Open
ctrueden opened this issue Jun 1, 2021 · 0 comments
Open

Bake in citations at build time #132

ctrueden opened this issue Jun 1, 2021 · 0 comments

Comments

@ctrueden
Copy link
Member

ctrueden commented Jun 1, 2021

The citation include accepts a doi (or id, which then retrieves a DOI), bakes that into as a simple metadata-laden span that gets be rewritten by JavaScript upon page load, via the excellent citation-js library. However, we can do better: we could do the DOI resolution with a Jekyll plugin at build time, so the citations get baked into the static HTML during site build, rather than re-resolved on every page load on every person's computer.

The jekyll-scholar plugin could be a good starting point, although I don't think it does what we need yet... but would be generally awesome to augment it to use citation-js to fill in the .bib data internally and then go from there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant