-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublications.html
75 lines (64 loc) · 2.35 KB
/
publications.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
layout: base
title: "Publications"
---
<div class="publications-page">
<h1>📚 Publications</h1>
<section class="publications">
{% for publication in site.data.publications %}
<div class="publication">
<!-- Title -->
<h3 class="pub-title"><strong>{{ publication.title }}</strong></h3>
<!-- Authors -->
<p class="authors">
<em style="color: gray;">{{ publication.authors }}</em>
</p>
<!-- Venue (optional) -->
{% if publication.venue %}
<p class="venue">
<em>{{ publication.venue }}</em>
</p>
{% endif %}
<!-- Figure -->
{% if publication.figure %}
<div class="pub-figure">
<img src="{{ publication.figure }}" alt="Figure for {{ publication.title }}">
</div>
{% endif %}
<!-- Abstract -->
<p>{{ publication.abstract }}</p>
<!-- Links (GitHub, Arxiv, Cite) -->
<div class="pub-links">
{% if publication.github %}
<a href="{{ publication.github }}" target="_blank" class="btn">
<i class="fab fa-github"></i> GitHub
</a>
{% endif %}
{% if publication.arxiv %}
<a href="{{ publication.arxiv }}" target="_blank" class="btn">
<i class="fas fa-file-alt"></i> ArXiv
</a>
{% endif %}
<!-- Cite Link with quotation mark icon -->
<a href="javascript:void(0);" onclick="toggleBibtex({{ forloop.index }})" class="btn cite-btn">
<i class="fas fa-quote-right"></i> Cite
</a>
</div>
<!-- BibTeX Entry (Hidden by Default) -->
<div id="bibtex-entry-{{ forloop.index }}" class="bibtex-entry" style="display: none;">
<pre>{{ publication.bibtex }}</pre>
</div>
</div>
{% endfor %}
</section>
</div>
<script>
function toggleBibtex(index) {
var bibtexEntry = document.getElementById('bibtex-entry-' + index);
if (bibtexEntry.style.display === "none") {
bibtexEntry.style.display = "block";
} else {
bibtexEntry.style.display = "none";
}
}
</script>