File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff 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+
Original file line number Diff line number Diff line change 33collection: publications
44permalink: /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 >
You can’t perform that action at this time.
0 commit comments