Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/citation-js/0.6.7/citation.min.js" integrity="sha512-N+LDFMa9owHXGS+CyMrBvuxq2QuGl3fiB/7cys3aUEL7K6P1soHGqsS0sjHXZpwNd9Kz0m3R4IPy1HYRi6ROEQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript">
addEventListener('DOMContentLoaded', async () => {
const Cite = window.require('citation-js');
const Cite = window.Cite;
if (!Cite) {
return;
}
const citationElements = document.querySelectorAll('.language-csl-json');
for (let citationElement of citationElements) {
for (const citationElement of citationElements) {
try {
const citation = await Cite.async(citationElement);
const template = document.createElement('template');
Expand Down
Loading