forked from khanlab/khanlab.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpubs.html
37 lines (33 loc) · 1.12 KB
/
pubs.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
---
layout: base
style: /assets/css/join.css
permalink: /pubs/
title: "PUBS |"
---
{% assign publications = site.data.publications.publications %} {% for post in
publications limit: 50 %}
<div class="row paper-item">
<div class="d-flex">
<div class="flex-grow-1 ms-3">
<a
class="pub-link"
href="https://doi.org/{{ post.doi }}"
target="_blank"
>{{ post.title }}</a
>
<p class="info">
{% assign authors = post.authors | split: "," %} {% assign dates =
post.year | append: "-" | append: post.month | append: "-" | append:
post.day %} {% if authors.size > 5 %} {{ authors[0] | append: "," |
append: authors[1] | append: "," | append: authors[2] | append: "," | replace: "[", ""
| replace: "'", "" | replace: "]", "" }}
<em>et al.</em>
{% else %} {% for author in authors %} {{ author | replace: "[", "" |
replace: "'", "" | replace: "]", "" }} {% if author != authors.last %}, {% endif %} {%
endfor %} {% endif %} <em>({{ dates | date: "%b %Y" }})</em>
</p>
</div>
<br />
</div>
</div>
{% endfor %}