Skip to content

Commit

Permalink
Update template.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryoichi Ando committed Jul 29, 2021
1 parent 557678d commit 136a1ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions resources/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,22 @@ <h3><div id="page_title"></div></h3>
//
files_html = '';
//
// [PDF]
if( paper['pdf'] ) {
if( files_html ) files_html += ' ';
files_html +=
'<div class="badge badge-pill badge-light border border-primary" id="link-badge">'+
`<a href="${dir+'/'+paper['pdf']}" target="_blank" id="link">PDF</a>`+'</div>'
}
//
// [Bib]
if( paper['bib'] ) {
if( files_html ) files_html += ' ';
files_html +=
'<div class="badge badge-pill badge-light border border-primary" id="link-badge">'+
`<a href="${dir+'/'+paper['bib']}" target="_blank" id="link">Bib</a>`+'</div>'
}
//
// video
for (const video of paper['videos']) {
if( files_html ) files_html += ' ';
Expand Down

0 comments on commit 136a1ce

Please sign in to comment.