Skip to content

Commit 1d592e2

Browse files
authored
Update archive-single.html
1 parent 6a7a45d commit 1d592e2

File tree

1 file changed

+56
-24
lines changed

1 file changed

+56
-24
lines changed

_includes/archive-single.html

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -22,45 +22,77 @@
2222
margin-right:auto;
2323
margin-left:auto;
2424
margin-bottom:0em;
25-
}
25+
}
2626
.paperimage {
2727
padding-right:2.5%;
2828
width:30%;
2929
max-width:20%;
3030
border:none;
31-
}
31+
}
3232
.papertext {
3333
width:80%;
3434
vertical-align:middle;
3535
border:none;
3636
padding-bottom:0%;
37-
}
37+
}
38+
39+
/* ==== NEW: venue banner on image ==== */
40+
.venue-wrapper {
41+
position: relative;
42+
display: inline-block;
43+
}
44+
.venue-wrapper img {
45+
display: block;
46+
width: 100%;
47+
}
48+
.venue-banner {
49+
position: absolute;
50+
top: 0;
51+
left: 0;
52+
padding: 4px 12px;
53+
background: #0047ab; /* banner color */
54+
color: #ffffff;
55+
font-size: 0.8rem;
56+
font-weight: 600;
57+
border-bottom-right-radius: 10px;
58+
z-index: 2;
59+
}
3860
</style>
3961
</head>
4062

4163
<div class="{{ include.type | default: "list" }}__item">
4264
<article>
43-
<!-- paper table -->
65+
<!-- paper table -->
4466
<table class="papertable">
45-
<tr style="padding:0px">
46-
<td class="paperimage">
47-
<img src="{{post.image}}" class="nopadimg">
48-
</td>
49-
<td class="papertext">
50-
<h2>{{title}}</h2>
51-
<p> {{post.authors}} </p>
52-
<p> {{post.venue}} </p>
53-
<!-- <a class="w3-button btn w3-white w3-text-blue w3-border" href="https://simple-bev.github.io/">project page</a> -->
54-
{% if post.paperurl and post.codeurl and post.arxivurl and post.biburl %}
55-
<p><a href="{{post.paperurl}}">[Paper]</a> | <a href="{{post.codeurl}}">[Code]</a> | <a href="{{post.arxivurl}}">[arXiv]</a> | <a href="{{post.biburl}}">[BibTeX]</a></p>
56-
{% elsif post.paperurl and post.arxivurl and post.biburl %}
57-
<p><a href="{{post.paperurl}}">[Paper]</a> | <a href="{{post.arxivurl}}">[arXiv]</a> | <a href="{{post.biburl}}">[BibTeX]</a></p>
58-
{% elsif post.paperurl and post.biburl %}
59-
<p><a href="{{post.paperurl}}">[Paper]</a> | <a href="{{post.biburl}}">[BibTeX]</a></p>
60-
{% endif %}
61-
</td>
62-
</tr>
63-
</table>
64-
67+
<tr style="padding:0px">
68+
<td class="paperimage">
69+
<div class="venue-wrapper">
70+
{% if post.venue %}
71+
<div class="venue-banner">{{ post.venue }}</div>
72+
{% endif %}
73+
<img src="{{ post.image }}" class="nopadimg" alt="{{ title | escape }}">
74+
</div>
75+
</td>
76+
<td class="papertext">
77+
<h2>{{ title }}</h2>
78+
<p>{{ post.authors }}</p>
79+
<p>{{ post.venue }}</p> {# delete this line if you don't want venue twice #}
80+
81+
{% if post.paperurl and post.codeurl and post.arxivurl and post.biburl %}
82+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
83+
<a href="{{ post.codeurl }}">[Code]</a> |
84+
<a href="{{ post.arxivurl }}">[arXiv]</a> |
85+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
86+
{% elsif post.paperurl and post.arxivurl and post.biburl %}
87+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
88+
<a href="{{ post.arxivurl }}">[arXiv]</a> |
89+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
90+
{% elsif post.paperurl and post.biburl %}
91+
<p><a href="{{ post.paperurl }}">[Paper]</a> |
92+
<a href="{{ post.biburl }}">[BibTeX]</a></p>
93+
{% endif %}
94+
</td>
95+
</tr>
96+
</table>
6597
</article>
6698
</div>

0 commit comments

Comments
 (0)