Skip to content

Commit 1d63117

Browse files
authored
Update archive-single.html
1 parent 1ca71db commit 1d63117

File tree

1 file changed

+45
-50
lines changed

1 file changed

+45
-50
lines changed

_includes/archive-single.html

Lines changed: 45 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -12,59 +12,54 @@
1212
{% assign title = post.title %}
1313
{% endif %}
1414

15-
<div class="{{ include.type | default: "list" }}__item">
16-
<article class="archive__item" itemscope itemtype="http://schema.org/CreativeWork">
17-
{% if include.type == "grid" and teaser %}
18-
<div class="archive__item-teaser">
19-
<img src=
20-
{% if teaser contains "://" %}
21-
"{{ teaser }}"
22-
{% else %}
23-
"{{ teaser | prepend: "/images/" | prepend: base_path }}"
24-
{% endif %}
25-
alt="">
26-
</div>
27-
{% endif %}
15+
<head>
2816

29-
<h2 class="archive__item-title" itemprop="headline">
30-
{% if post.link %}
31-
<a href="{{ post.link }}">{{ title }}</a> <a href="{{ base_path }}{{ post.url }}" rel="permalink"><i class="fa fa-link" aria-hidden="true" title="permalink"></i><span class="sr-only">Permalink</span></a>
32-
{% else %}
33-
<a href="{{ base_path }}{{ post.url }}" rel="permalink">{{ title }}</a>
34-
{% endif %}
35-
</h2>
36-
37-
{% if post.read_time %}
38-
<p class="page__meta"><i class="fa fa-clock-o" aria-hidden="true"></i> {% include read-time.html %}</p>
39-
{% endif %}
17+
<style>
18+
.papertable {
19+
width:100%;
20+
border:none;
21+
border-spacing:0px;
22+
border-collapse:separate;
23+
margin-right:auto;
24+
margin-left:auto;
25+
margin-bottom:2em;
26+
}
27+
.paperimage {
28+
padding-right:2.5%;
29+
width:30%;
30+
max-width:20%;
31+
border:none;
32+
}
33+
.papertext {
34+
width:80%;
35+
vertical-align:middle;
36+
border:none;
37+
padding-bottom:5%;
38+
}
39+
</style>
40+
</head>
4041

41-
{% if post.collection == 'teaching' %}
42-
<p> {{ post.type }}, <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
43-
{% elsif post.collection == 'publications' %}
44-
<p>Published in <i>{{ post.venue }}</i>, {{ post.date | default: "1900-01-01" | date: "%Y" }} </p>
45-
{% elsif post.date %}
46-
<p class="page__date"><strong><i class="fa fa-fw fa-calendar" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].date_label | default: "Published:" }}</strong> <time datetime="{{ post.date | default: "1900-01-01" | date_to_xmlschema }}">{{ post.date | default: "1900-01-01" | date: "%B %d, %Y" }}</time></p>
42+
<div class="{{ include.type | default: "list" }}__item">
43+
<article>
44+
<!-- paper table -->
45+
<table class="papertable">
46+
<tr style="padding:0px">
47+
<td class="paperimage">
48+
<img src="{{post.image}}" class="nopadimg">
49+
</td>
50+
<td class="papertext">
51+
<h2>{{title}}</h2>
52+
<p>{{ post.venue }}, {{ post.date | default: "1900-01-01" | date: "%Y" }}</p>
53+
<p> {{post.authors}} </p>
54+
<!-- <a class="w3-button btn w3-white w3-text-blue w3-border" href="https://simple-bev.github.io/">project page</a> -->
55+
<a href="{{post.paperurl}}">[paper]</a>
56+
<a href="{{post.codeurl}}">[code]</a>
57+
{% if post.additional_note %}
58+
{{post.additional_note}}
4759
{% endif %}
48-
49-
{% if post.excerpt and site.read_more != 'enabled' %}
50-
<p class="archive__item-excerpt" itemprop="description">{{ post.excerpt | markdownify }}</p>
51-
{% elsif post.excerpt and site.read_more == 'enabled' %}
52-
<p class="archive__item-excerpt" itemprop="description"><p>{{ post.excerpt | markdownify | remove: '<p>' | remove: '</p>' }}<strong><a href="{{ base_path }}{{ post.url }}" rel="permalink"> Read more</a></strong></p></p>
53-
{% endif %}
54-
55-
{% if post.citation and post.paperurl and post.slidesurl %}
56-
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a> | <a href="{{ post.slidesurl }}">Download Slides</a></p>
57-
{% elsif post.citation and post.paperurl %}
58-
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.paperurl }}">Download Paper</a></p>
59-
{% elsif post.citation and post.slidesurl %}
60-
<p>Recommended citation: {{ post.citation }}<br /><a href="{{ post.slidesurl }}">Download Slides</a></p>
61-
{% elsif post.citation %}
62-
<p>Recommended citation: {{ post.citation }}</p>
63-
{% elsif post.paperurl %}
64-
<p><a href=" {{ post.paperurl }} ">Download Paper</a></p>
65-
{% elsif post.slidesurl %}
66-
<p><a href="{{ post.slidesurl }}">Download Slides</a></p>
67-
{% endif %}
60+
</td>
61+
</tr>
62+
</table>
6863

6964
</article>
7065
</div>

0 commit comments

Comments
 (0)