Skip to content

Commit 58044d7

Browse files
authored
1
1 parent 5a046a9 commit 58044d7

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

_pages/publications.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,14 @@ author_profile: true
1313
{% include base_path %}
1414

1515
{% for post in site.publications reversed %}
16-
{% include archive-single.html %}
16+
<div id="article-container-{{ post.title }}" class="article-container"></div>
17+
<script>
18+
document.addEventListener('DOMContentLoaded', (event) => {
19+
fetchAndParseBibtex('{{ post.title }}-paper.bib').then(parsedData => {
20+
let htmlContent = generateArticleHtml(parsedData);
21+
document.getElementById("article-container-{{ post.title }}").innerHTML = htmlContent;
22+
});
23+
});
24+
</script>
1725
{% endfor %}
26+

_publications/2015-paper.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,3 @@
33
collection: publications
44
permalink: /publication/2015
55
---
6-
7-
<div id='2015-papers' class="article-container"></div>
8-
<script>
9-
document.addEventListener('DOMContentLoaded', (event) => {
10-
fetchAndParseBibtex('/publications/2015-paper.bib').then(parsedData => {
11-
let htmlContent = generateArticleHtml(parsedData);
12-
document.querySelector(".article-container").innerHTML = htmlContent;
13-
});
14-
});
15-
</script>

0 commit comments

Comments
 (0)