Skip to content

Commit 7314f22

Browse files
committed
publications
added the changes to make the papers page work
1 parent 7d0ce63 commit 7314f22

7 files changed

Lines changed: 299 additions & 41 deletions

File tree

_config.yml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,16 +285,26 @@ scholar:
285285
details_link: Details
286286

287287
query: "@*"
288-
group_by: year
289-
group_order: descending
288+
# group_by: year
289+
# group_order: descending
290+
sort_by: year,month,day
291+
order: descending
292+
group_by: type
293+
group_order: ascending
294+
type_aliases: {inproceedings: article}
295+
type_names: {unpublished: Preprints, article: Papers (Journals & Conferences), workshop: Peer-Reviewed Workshops, thesis: Theses, patent: Patents}
296+
type_order: [article,unpublished,workshop,thesis,patent,misc]
297+
298+
bibliography_list_attributes:
299+
reversed: true
290300

291301
# Display different badges withs stats for your publications
292302
# Customize badge behavior in _layouts/bib.liquid
293303
enable_publication_badges:
294-
altmetric: true # Altmetric badge (Customization options: https://badge-docs.altmetric.com/index.html)
295-
dimensions: true # Dimensions badge (Customization options: https://badge.dimensions.ai/)
296-
google_scholar: true # Google Scholar badge (https://scholar.google.com/intl/en/scholar/citations.html)
297-
inspirehep: true # Inspire HEP badge (https://help.inspirehep.net/knowledge-base/citation-metrics/)
304+
altmetric: false # Altmetric badge (Customization options: https://badge-docs.altmetric.com/index.html)
305+
dimensions: false # Dimensions badge (Customization options: https://badge.dimensions.ai/)
306+
google_scholar: false # Google Scholar badge (https://scholar.google.com/intl/en/scholar/citations.html)
307+
inspirehep: false # Inspire HEP badge (https://help.inspirehep.net/knowledge-base/citation-metrics/)
298308

299309
# Filter out certain bibtex entry keywords used internally from the bib output
300310
filtered_bibtex_keywords:
@@ -324,7 +334,7 @@ filtered_bibtex_keywords:
324334
]
325335

326336
# Maximum number of authors to be shown for each publication (more authors are visible on click)
327-
max_author_limit: 8 # leave blank to always show all authors
337+
max_author_limit: 10 # leave blank to always show all authors
328338
more_authors_animation_delay: 10 # more authors are revealed on click using animation; smaller delay means faster animation
329339

330340
# Enables publication thumbnails. If disabled, none of the publications will display thumbnails, even if specified in the bib entry.
@@ -390,7 +400,7 @@ enable_navbar_social: false # enables displaying social links in the navbar on t
390400
enable_project_categories: true # enables categorization of projects into multiple categories
391401
enable_medium_zoom: true # enables image zoom feature (as on medium.com)
392402
enable_progressbar: true # enables a horizontal progress bar linked to the vertical scroll position
393-
enable_video_embedding: true # enables video embedding for bibtex entries. If false, the button opens the video link in a new window.
403+
enable_video_embedding: false # enables video embedding for bibtex entries. If false, the button opens the video link in a new window.
394404

395405
# -----------------------------------------------------------------------------
396406
# Library versions

_layouts/bib.liquid

Lines changed: 62 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,25 @@
22
---
33
<div class="row">
44
{% if site.enable_publication_thumbnails %}
5-
<div class="col col-sm-2 abbr">
5+
<div class="col col-sm-2 abbr">
66
{%- if entry.abbr -%}
7+
<style>
8+
@media (max-width: 768px) {
9+
{% if entry.abbr %}
10+
.abbr { display: none !important; }
11+
{% endif %}
12+
}
13+
</style>
714
{%- if site.data.venues[entry.abbr] -%}
815
{% assign venue_style = null %}
916
{% if site.data.venues[entry.abbr].color != blank %}
1017
{% assign venue_style = site.data.venues[entry.abbr].color | prepend: 'style="background-color:' | append: '"' %}
1118
{%- endif -%}
12-
<abbr
13-
class="badge rounded w-100"
19+
<abbr class="badge rounded w-100"
1420
{% if venue_style %}
1521
{{ venue_style }}
16-
{% endif -%}
17-
>
22+
{%- endif -%}
23+
>
1824
{% if site.data.venues[entry.abbr].url %}
1925
<a href="{{ site.data.venues[entry.abbr].url }}">{{ entry.abbr }}</a>
2026
{% else %}
@@ -26,6 +32,13 @@
2632
{% endif %}
2733
{% endif %}
2834
{% if entry.preview %}
35+
<style>
36+
@media (max-width: 768px) {
37+
{% if entry.preview %}
38+
.preview { display: none !important; }
39+
{% endif %}
40+
}
41+
</style>
2942
{% if entry.preview contains '://' %}
3043
<img class="preview z-depth-1 rounded" src="{{ entry.preview }}">
3144
{% else %}
@@ -46,9 +59,23 @@
4659
{% endif %}
4760

4861
<!-- Entry bib key -->
49-
<div id="{{ entry.key }}" class="{% if site.enable_publication_thumbnails %}col-sm-8{% else %}col-sm-10{% endif %}">
62+
<div id="{{ entry.key }}" class="{% if site.enable_publication_thumbnails %}col-sm-9{% else %}col-sm-11{% endif %}">
5063
<!-- Title -->
51-
<div class="title">{{ entry.title }}</div>
64+
<div class="title">
65+
{% if entry.arxiv %}
66+
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" target="_blank">{{entry.title}}.</a>
67+
{% elsif entry.pdf %}
68+
{% if entry.pdf contains "://" %}
69+
<a href="{{ entry.pdf }}" target="_blank">{{entry.title}}.</a>
70+
{% elsif entry.pdf %}
71+
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | prepend: site.baseurl | prepend: site.url }}" target="_blank">{{entry.title}}.</a>
72+
{% endif %}
73+
{% elsif entry.url %}
74+
<a href="{{ entry.url }}" target="_blank">{{entry.title}}.</a>
75+
{% else %}
76+
{{entry.title}}.
77+
{% endif %}
78+
</div>
5279
<!-- Author -->
5380
<div class="author">
5481
{% assign author_array_size = entry.author_array | size %}
@@ -156,7 +183,13 @@
156183
{% elsif proceedings contains entry.type %}
157184
{% capture entrytype %}<em>In {{ entry.booktitle }}</em>{% endcapture %}
158185
{% elsif thesis contains entry.type %}
159-
{% capture entrytype %}<em>{{ entry.school }}</em>{% endcapture %}
186+
{% capture entrytype %}<em>{{ entry.school }}</em>{% endcapture %}
187+
{% elsif entry.type contains "patent" %}
188+
{% if entry.month %}
189+
{% capture entrytype %}<em>{{entry.number}}</em>, <em>{{entry.month}}</em>, <em>{{entry.yeargranted}}</em>{% endcapture %}
190+
{% else %}
191+
{% capture entrytype %}<em>{{entry.number}}</em>, <em>{{entry.monthfiled}}</em>, <em>{{entry.yearfiled}}</em>{% endcapture %}
192+
{% endif %}
160193
{% else %}
161194
{% capture entrytype %}{% endcapture %}
162195
{% endif %}
@@ -189,69 +222,71 @@
189222
<div class="links">
190223
{% if entry.award %}
191224
<a class="award btn btn-sm z-depth-0" role="button">
192-
{%- if entry.award_name %}{{ entry.award_name }}{% else %}Awarded{% endif -%}
225+
<span style="color:DarkOrange; font-weight: bold;"><i class="fas fa-trophy"></i> &nbsp; {%- if entry.award_name %}{{ entry.award_name }}{% else %}Awarded{% endif -%}</span>
193226
</a>
227+
<br>
194228
{% endif %}
195229
{% if entry.abstract %}
196-
<a class="abstract btn btn-sm z-depth-0" role="button">Abs</a>
230+
<a class="abstract btn btn-sm z-depth-0" role="button"><i class="fas fa-filter"></i> Abs</a>
197231
{% endif %}
198232
{% if entry.doi %}
199-
<a href="https://doi.org/{{ entry.doi }}" class="btn btn-sm z-depth-0" role="button">DOI</a>
233+
<a href="https://doi.org/{{ entry.doi }}" class="btn btn-sm z-depth-0" role="button"><i class="fa-solid fa-location-pin"></i> DOI</a>
200234
{% endif %}
201235
{% if entry.arxiv %}
202-
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button">arXiv</a>
236+
<a href="http://arxiv.org/abs/{{ entry.arxiv }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-bookmark"></i> arXiv</a>
203237
{% endif %}
204238
{% if entry.bibtex_show %}
205239
<a class="bibtex btn btn-sm z-depth-0" role="button">Bib</a>
206240
{% endif %}
207241
{% if entry.html %}
208242
{% if entry.html contains '://' %}
209-
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
243+
<a href="{{ entry.html }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-link"></i> url</a>
210244
{% else %}
211-
<a href="{{ entry.html | prepend: '/assets/html/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">HTML</a>
245+
<a href="{{ entry.html | prepend: '/assets/html/' | relative_url }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-link"></i> url</a>
212246
{% endif %}
213247
{% endif %}
214248
{% if entry.pdf %}
215249
{% if entry.pdf contains '://' %}
216-
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button">PDF</a>
250+
<a href="{{ entry.pdf }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-file-alt"></i> PDF</a>
217251
{% else %}
218-
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">PDF</a>
252+
<a href="{{ entry.pdf | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-file-alt"></i> PDF</a>
219253
{% endif %}
220254
{% endif %}
221255
{% if entry.supp %}
222256
{% if entry.supp contains '://' %}
223-
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button">Supp</a>
257+
<a href="{{ entry.supp }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-file-alt"></i> Supp</a>
224258
{% else %}
225-
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Supp</a>
259+
<a href="{{ entry.supp | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-file-alt"></i> Supp</a>
226260
{% endif %}
227261
{% endif %}
228262
{% if entry.video and site.enable_video_embedding %}
229-
<a class="abstract btn btn-sm z-depth-0" role="button">Video</a>
263+
<a class="abstract btn btn-sm z-depth-0" role="button"><i class="fas fa-video"></i> Video</a>
230264
{% elsif entry.video %}
231-
<a href="{{ entry.video }}" class="btn btn-sm z-depth-0" role="button">Video</a>
265+
{% comment %} <a href="{{ entry.video }}" class="btn btn-sm z-depth-0" role="button">Video</a> {% endcomment %}
266+
<a class="venobox btn btn-sm z-depth-0" data-autoplay="true" data-vbtype="video" href="{{ entry.video }}"><i class="fas fa-video"></i> Video</a>
232267
{% endif %}
233268
{% if entry.blog %}
234-
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button">Blog</a>
269+
<a href="{{ entry.blog }}" class="btn btn-sm z-depth-0" role="button"><i class="far fa-newspaper"></i> Blog</a>
235270
{% endif %}
236271
{% if entry.code %}
237-
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button">Code</a>
272+
<a href="{{ entry.code }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-code"></i> Code</a>
238273
{% endif %}
239274
{% if entry.poster %}
240275
{% if entry.poster contains '://' %}
241-
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button">Poster</a>
276+
<a href="{{ entry.poster }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-tv"></i> Poster</a>
242277
{% else %}
243-
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Poster</a>
278+
<a href="{{ entry.poster | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-tv"></i> Poster</a>
244279
{% endif %}
245280
{% endif %}
246281
{% if entry.slides %}
247282
{% if entry.slides contains '://' %}
248-
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button">Slides</a>
283+
<a href="{{ entry.slides }}" class="btn btn-sm z-depth-0" role="button"><i class="fa-regular fa-file-powerpoint"></i> Slides</a>
249284
{% else %}
250-
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button">Slides</a>
285+
<a href="{{ entry.slides | prepend: '/assets/pdf/' | relative_url }}" class="btn btn-sm z-depth-0" role="button"><i class="fa-regular fa-file-powerpoint"></i> Slides</a>
251286
{% endif %}
252287
{% endif %}
253288
{% if entry.website %}
254-
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button">Website</a>
289+
<a href="{{ entry.website }}" class="btn btn-sm z-depth-0" role="button"><i class="fas fa-globe"></i> Website</a>
255290
{% endif %}
256291
</div>
257292
{% if site.enable_publication_badges %}

_pages/publications.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22
layout: page
33
permalink: /publications/
44
title: publications
5-
description: publications by categories in reversed chronological order. generated by jekyll-scholar.
5+
description:
66
nav: true
77
nav_order: 2
8+
# toc:
9+
# sidebar: left
10+
# min_level: 2
11+
# max_level: 4
12+
images:
13+
venobox: true
814
---
915

16+
For the up-to-date publication list, please see [Google Scholar](http://scholar.google.com/citations?user=zp8V7ZMAAAAJ&hl=en) or [Semantic Scholar](https://www.semanticscholar.org/author/Animesh-Garg/1873736) pages.
17+
18+
For coverage of research in press, please see [News](/news/)
19+
1020
<!-- _pages/publications.md -->
1121

1222
<!-- Bibsearch Feature -->
@@ -17,4 +27,4 @@ nav_order: 2
1727

1828
{% bibliography %}
1929

20-
</div>
30+
</div>

_sass/_base.scss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*******************************************************************************
22
* Styles for the base elements of the theme.
33
******************************************************************************/
4-
// Typography
4+
5+
// Typography
56
p,
67
h1,
78
h2,
@@ -712,7 +713,7 @@ footer.sticky-bottom {
712713
}
713714

714715
h2.bibliography {
715-
color: var(--global-divider-color);
716+
color: var(--global-text-color-light);
716717
border-top: 1px solid var(--global-divider-color);
717718
padding-top: 1rem;
718719
margin-top: 2rem;
@@ -755,7 +756,12 @@ footer.sticky-bottom {
755756
}
756757

757758
.title {
758-
font-weight: bolder;
759+
font-weight: 400;
760+
color: var(--global-text-color);
761+
a {
762+
font-weight: 400;
763+
color: var(--global-text-color);
764+
}
759765
}
760766

761767
.author {
@@ -788,7 +794,7 @@ footer.sticky-bottom {
788794
.links {
789795
a.btn {
790796
color: var(--global-text-color);
791-
border: 1px solid var(--global-text-color);
797+
border: 1px solid var(--global-divider-color);
792798
padding-left: 1rem;
793799
padding-right: 1rem;
794800
padding-top: 0.25rem;

0 commit comments

Comments
 (0)