|
1 | 1 | {%- comment -%} |
2 | | - Publication card partial: |
3 | | - - Displays a thumbnail column (defaults to the lab logo when no list_image is provided). |
4 | | - - Renders venue metadata and resource links pulled from _data/publications.yml. |
| 2 | + Publication list entry rendered in a simple two-column layout (image + text). |
5 | 3 | {%- endcomment -%} |
6 | 4 | {% assign entry = include.entry | default: empty %} |
7 | | -{% assign include_year = include.include_year | default: false %} |
8 | 5 | {% assign item_id = entry.id | default: entry.title | slugify %} |
9 | 6 |
|
10 | 7 | {% assign list_image = entry.list_image %} |
|
16 | 13 | {% assign list_image = 'images/logopic/group_logo_medium.png' %} |
17 | 14 | {% endif %} |
18 | 15 |
|
19 | | -{% assign meta_parts = '' | split: '' %} |
| 16 | +{% comment %} |
| 17 | + List of possible venue fields in order of preference. |
| 18 | +{%- endcomment -%} |
20 | 19 | {% assign venue = entry.journal | default: entry.booktitle | default: entry.publisher | default: entry.school %} |
21 | | -{% if venue %} |
22 | | - {% assign meta_parts = meta_parts | push: venue %} |
23 | | -{% endif %} |
24 | | -{% if entry.series %} |
25 | | - {% assign meta_parts = meta_parts | push: entry.series %} |
26 | | -{% endif %} |
27 | | -{% assign volume_part = '' %} |
28 | | -{% if entry.volume %} |
29 | | - {% assign volume_part = 'Vol. ' | append: entry.volume %} |
30 | | -{% endif %} |
31 | | -{% if entry.number %} |
32 | | - {% assign number_part = 'No. ' | append: entry.number %} |
33 | | - {% if volume_part %} |
34 | | - {% assign volume_part = volume_part | append: ', ' | append: number_part %} |
35 | | - {% else %} |
36 | | - {% assign volume_part = number_part %} |
37 | | - {% endif %} |
38 | | -{% endif %} |
39 | | -{% if volume_part %} |
40 | | - {% assign meta_parts = meta_parts | push: volume_part %} |
41 | | -{% endif %} |
42 | | -{% if entry.pages %} |
43 | | - {% assign meta_parts = meta_parts | push: 'pp. ' | append: entry.pages %} |
44 | | -{% endif %} |
45 | | -{% if entry.month %} |
46 | | - {% assign meta_parts = meta_parts | push: entry.month %} |
47 | | -{% endif %} |
48 | | -{% if include_year and entry.year %} |
49 | | - {% assign meta_parts = meta_parts | push: entry.year %} |
50 | | -{% endif %} |
51 | | -{% capture meta_string %}{{ meta_parts | join: ' · ' }}{% endcapture %} |
52 | | -{% assign meta_string = meta_string | strip %} |
| 20 | +{% assign link_count = 0 %} |
| 21 | +{% if entry.url %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
| 22 | +{% if entry.arxiv %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
| 23 | +{% if entry.github %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
| 24 | +{% if entry.doi %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
| 25 | +{% if entry.video %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
| 26 | +{% if entry.poster %}{% assign link_count = link_count | plus: 1 %}{% endif %} |
53 | 27 |
|
54 | | -<li class="publication-item" id="{{ item_id }}"> |
55 | | - <div class="publication-card publication-card--with-media"> |
56 | | - <div class="publication-card__media"> |
| 28 | +<div class="publication-item" id="{{ item_id }}"> |
| 29 | + <div class="publication-entry"> |
| 30 | + <div class="publication-entry__image"> |
57 | 31 | <img src="{{ list_image | relative_url }}" alt="Illustration for {{ entry.title | escape }}" loading="lazy"> |
58 | 32 | </div> |
59 | | - <div class="publication-card__body"> |
60 | | - <div class="publication-title">{{ entry.title }}</div> |
| 33 | + <div class="publication-entry__details"> |
| 34 | + <p class="publication-entry__title"><strong>{{ entry.title }}</strong></p> |
61 | 35 | {% if entry.authors %} |
62 | | - <div class="publication-authors">{{ entry.authors }}</div> |
| 36 | + <p class="publication-entry__authors">{{ entry.authors }}</p> |
63 | 37 | {% endif %} |
64 | | - {% if meta_string != '' %} |
65 | | - <div class="publication-meta">{{ meta_string }}</div> |
| 38 | + {% if venue %} |
| 39 | + <p class="publication-entry__venue"><em>{{ venue }}</em></p> |
66 | 40 | {% endif %} |
67 | 41 | {% if entry.note %} |
68 | | - <div class="publication-note">{{ entry.note }}</div> |
| 42 | + <p class="publication-entry__note">{{ entry.note }}</p> |
| 43 | + {% endif %} |
| 44 | + {% if link_count > 0 %} |
| 45 | + <p class="publication-entry__links"> |
| 46 | + {% if entry.url %} |
| 47 | + <a href="{{ entry.url }}">[LINK]</a> |
| 48 | + {% endif %} |
| 49 | + {% if entry.arxiv %} |
| 50 | + <a href="https://arxiv.org/abs/{{ entry.arxiv }}">[ARXIV]</a> |
| 51 | + {% endif %} |
| 52 | + {% if entry.github %} |
| 53 | + <a href="{{ entry.github }}">[CODE]</a> |
| 54 | + {% endif %} |
| 55 | + {% if entry.doi %} |
| 56 | + <a href="https://doi.org/{{ entry.doi }}">[DOI]</a> |
| 57 | + {% endif %} |
| 58 | + {% if entry.video %} |
| 59 | + <a href="{{ entry.video }}">[VIDEO]</a> |
| 60 | + {% endif %} |
| 61 | + {% if entry.poster %} |
| 62 | + <a href="{{ entry.poster }}">[POSTER]</a> |
| 63 | + {% endif %} |
| 64 | + </p> |
69 | 65 | {% endif %} |
70 | | - <div class="publication-links"> |
71 | | - {% assign link_count = 0 %} |
72 | | - {%- comment -%} |
73 | | - Publication links in consistent order: |
74 | | - 1. Link (project/paper website) |
75 | | - 2. arXiv |
76 | | - 3. GitHub |
77 | | - 4. DOI |
78 | | - 5. PDF |
79 | | - 6. Video |
80 | | - 7. Poster |
81 | | - {%- endcomment -%} |
82 | | - {% if entry.url %} |
83 | | - {% assign link_count = link_count | plus: 1 %} |
84 | | - <a class="pub-link" href="{{ entry.url }}">Link</a> |
85 | | - {% endif %} |
86 | | - {% if entry.arxiv %} |
87 | | - {% assign link_count = link_count | plus: 1 %} |
88 | | - <a class="pub-link" href="https://arxiv.org/abs/{{ entry.arxiv }}">arXiv</a> |
89 | | - {% endif %} |
90 | | - {% if entry.github %} |
91 | | - {% assign link_count = link_count | plus: 1 %} |
92 | | - <a class="pub-link" href="{{ entry.github }}">GitHub</a> |
93 | | - {% endif %} |
94 | | - {% if entry.doi %} |
95 | | - {% assign link_count = link_count | plus: 1 %} |
96 | | - <a class="pub-link" href="https://doi.org/{{ entry.doi }}">DOI</a> |
97 | | - {% endif %} |
98 | | - {% if entry.video %} |
99 | | - {% assign link_count = link_count | plus: 1 %} |
100 | | - <a class="pub-link" href="{{ entry.video }}">Video</a> |
101 | | - {% endif %} |
102 | | - {% if entry.poster %} |
103 | | - {% assign link_count = link_count | plus: 1 %} |
104 | | - <a class="pub-link" href="{{ entry.poster }}">Poster</a> |
105 | | - {% endif %} |
106 | | - {% if link_count == 0 %} |
107 | | - <span class="pub-link placeholder">Links coming soon</span> |
108 | | - {% endif %} |
109 | | - </div> |
110 | 66 | </div> |
111 | 67 | </div> |
112 | | -</li> |
| 68 | +</div> |
0 commit comments