Skip to content

Commit 299258b

Browse files
authored
Update archive-single.html
1 parent 322237f commit 299258b

File tree

1 file changed

+37
-26
lines changed

1 file changed

+37
-26
lines changed

_includes/archive-single.html

Lines changed: 37 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,20 @@
1212
{% assign title = post.title %}
1313
{% endif %}
1414

15+
.paper-card {
16+
display: inline-block; /* so scale behaves nicely */
17+
transform: scale(1.5); /* 150% of original size */
18+
transform-origin: top left; /* grow down/right from top-left */
19+
margin-bottom: 2.5rem; /* extra space between big cards */
20+
}
21+
1522
<head>
1623
<style>
1724
/* === Card for one publication === */
1825
.paper-row {
19-
display: flex;
26+
display: inline-block;
27+
transform: scale(1.5);
28+
transform-origin: top left;
2029
align-items: center;
2130
gap: 2.8rem; /* space between image & text */
2231
padding: 1.6rem 1.8rem; /* makes the whole box larger */
@@ -81,33 +90,35 @@
8190

8291
<div class="{{ include.type | default: "list" }}__item">
8392
<article>
84-
<div class="paper-row">
85-
<div class="paperimage">
86-
<div class="venue-wrapper">
87-
{% if post.venue %}
88-
<div class="venue-banner">{{ post.venue }}</div>
89-
{% endif %}
90-
<img src="{{ post.image }}" class="nopadimg" alt="{{ title | escape }}">
93+
<div class="paper-card">
94+
<div class="paper-row">
95+
<div class="paperimage">
96+
<div class="venue-wrapper">
97+
{% if post.venue %}
98+
<div class="venue-banner">{{ post.venue }}</div>
99+
{% endif %}
100+
<img src="{{ post.image }}" class="nopadimg" alt="{{ title | escape }}">
101+
</div>
91102
</div>
92-
</div>
93103

94-
<div class="papertext">
95-
<h2>{{ title }}</h2>
96-
<p>{{ post.authors }}</p>
97-
<p><strong>TL;DR:</strong> {{ post.tldr }}</p>
98-
{% if post.paperurl and post.codeurl and post.arxivurl and post.biburl %}
99-
<p><a href="{{ post.paperurl }}">[Paper]</a> |
100-
<a href="{{ post.codeurl }}">[Code]</a> |
101-
<a href="{{ post.arxivurl }}">[arXiv]</a> |
102-
<a href="{{ post.biburl }}">[BibTeX]</a></p>
103-
{% elsif post.paperurl and post.arxivurl and post.biburl %}
104-
<p><a href="{{ post.paperurl }}">[Paper]</a> |
105-
<a href="{{ post.arxivurl }}">[arXiv]</a> |
106-
<a href="{{ post.biburl }}">[BibTeX]</a></p>
107-
{% elsif post.paperurl and post.biburl %}
108-
<p><a href="{{ post.paperurl }}">[Paper]</a> |
109-
<a href="{{ post.biburl }}">[BibTeX]</a></p>
110-
{% endif %}
104+
<div class="papertext">
105+
<h2>{{ title }}</h2>
106+
<p>{{ post.authors }}</p>
107+
<p><strong>TL;DR:</strong> {{ post.tldr }}</p>
108+
{% if post.paperurl and post.codeurl and post.arxivurl and post.biburl %}
109+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
110+
<a href="{{ post.codeurl }}">[Code]</a> |
111+
<a href="{{ post.arxivurl }}">[arXiv]</a> |
112+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
113+
{% elsif post.paperurl and post.arxivurl and post.biburl %}
114+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
115+
<a href="{{ post.arxivurl }}">[arXiv]</a> |
116+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
117+
{% elsif post.paperurl and post.biburl %}
118+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
119+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
120+
{% endif %}
121+
</div>
111122
</div>
112123
</div>
113124
</article>

0 commit comments

Comments
 (0)