Skip to content

Commit 49bc72f

Browse files
Add publication page
- Add publication.html for layout of the publication page - Update publications.md to add a `Read More` button redirecting to the specific publication page - Add publication page for `Fast And Automatic Floating Point Error Analysis With CHEF-FP`
1 parent 0f1a922 commit 49bc72f

File tree

3 files changed

+84
-1
lines changed

3 files changed

+84
-1
lines changed

_layouts/publication.html

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
layout: default
3+
---
4+
5+
{% assign publication = site.data.publist | where: "title", page.title | first %}
6+
7+
<article class="publication" itemscope itemtype="http://schema.org/ScholarlyArticle">
8+
<header class="publication-header">
9+
<h1 class="publication-title" itemprop="headline">{{ publication.title }}</h1>
10+
<p class="publication-meta">
11+
<span itemprop="author" itemscope itemtype="http://schema.org/Person">
12+
<span itemprop="name">{{ publication.author }}</span>
13+
</span>
14+
<time datetime="{{ publication.year | date: "%Y" }}" itemprop="datePublished">{{ publication.year }}</time>
15+
</p>
16+
</header>
17+
18+
{% if page.banner_image %}
19+
<div class="post-banner">
20+
<img src="{{ page.banner_image }}"
21+
alt="Banner Image" class="banner-image" />
22+
</div>
23+
{% endif %}
24+
25+
<div class="publication-content" itemprop="description">
26+
<h3>Abstract</h3>
27+
<p>{{ publication.abstract | markdownify }}</p>
28+
{{ content }}
29+
</div>
30+
31+
<div class="publication-info">
32+
<h3>Details</h3>
33+
{% if publication.journal %}
34+
<p><strong>Journal:</strong> {{ publication.journal }}</p>
35+
{% endif %}
36+
{% if publication.volume %}
37+
<p><strong>Volume:</strong> {{ publication.volume }}</p>
38+
{% endif %}
39+
{% if publication.pages %}
40+
<p><strong>Pages:</strong> {{ publication.pages }}</p>
41+
{% endif %}
42+
{% if publication.cites %}
43+
<p><strong>Cited by:</strong> {{ publication.cites }} times</p>
44+
{% endif %}
45+
{% if publication.eprint %}
46+
<p><strong><a href="{{ publication.eprint }}" target="_blank">E-Print</a></strong></p>
47+
{% endif %}
48+
{% if publication.url %}
49+
<p><strong><a href="{{ publication.url }}" target="_blank">Read Full Publication</a></strong></p>
50+
{% endif %}
51+
</div>
52+
53+
</article>
54+
55+
<style>
56+
.publication-header .author-image {
57+
width: 30px;
58+
height: 30px;
59+
border-radius: 50%;
60+
object-fit: cover;
61+
}
62+
63+
.publication-banner .banner-image {
64+
width: 100%;
65+
height: auto;
66+
}
67+
68+
.tag-badge {
69+
background-color: #999999;
70+
padding: 0.5rem;
71+
}
72+
</style>

_pages/publications.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ permalink: /publications/
7676
{% if publi.abstract.size > 7 %}
7777
* {{publi.abstract}}
7878
{% endif %}
79+
{% if publi.link %}
80+
<p>
81+
<button class="btn btn-primary" onclick="window.location.href='{{ publi.link }}'">Read More</button>
82+
</p>
83+
{% endif %}
7984
{% endfor %}
8085
</div>
81-
</div>
86+
</div>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: Fast And Automatic Floating Point Error Analysis With CHEF-FP
3+
permalink: /publications/fast-and-automatic-floating-point-error-analysis-with-chef-fp
4+
layout: publication
5+
---
6+

0 commit comments

Comments
 (0)