|
4 | 4 | title: "Publications" |
5 | 5 | $paragraph-indent: true |
6 | 6 | --- |
7 | | - |
| 7 | + |
8 | 8 | <link rel="stylesheet" type="text/css" href="/assets/css/publications.css"> |
9 | 9 | <script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script> |
10 | 10 | <script src=" https://unpkg.com/[email protected]/dist/isotope.pkgd.js" ></script> |
11 | | - |
| 11 | + |
12 | 12 | <h3>{{page.title}}</h3> |
13 | | - |
| 13 | + |
14 | 14 | <!-- Buttons for publication type filter starts --> |
15 | 15 | <div class="button-group filter-button-group"> |
16 | | - <a class="button all active" data-filter="*">All</a> |
| 16 | +<a class="button all active" data-filter="*">All</a> |
17 | 17 | {% for category in site.data.publication-type %} |
18 | | - <a class="button" data-filter=".{{ category.id}}">{{ category.name}}</a> |
| 18 | +<a class="button" data-filter=".{{ category.id}}">{{ category.name}}</a> |
19 | 19 | {% endfor %} |
20 | 20 | </div> |
21 | 21 | <!-- Buttons for publication type filter ends --> |
22 | | - |
| 22 | + |
23 | 23 | <!-- publication grouped by year starts--> |
24 | 24 | {% assign items_grouped = site.data.publications | sort: 'year' | reverse | group_by: 'year' %} |
25 | 25 | <div class="grid"> |
26 | 26 | {% for group in items_grouped %} |
27 | | - |
| 27 | + |
28 | 28 | <!-- year starts--> |
29 | 29 | {% assign all_types = "" %} |
30 | 30 | {% assign publication_grouped = group.items | group_by: 'publicationType' %} |
31 | | - <div class="year {% for publication in publication_grouped %}{{ all_types | append: ' ' | append: publication.name }}{% endfor %}">{{group.name}}</div> |
32 | | - <!-- year ends--> |
33 | | - |
| 31 | +<div class="year {% for publication in publication_grouped %}{{ all_types | append: ' ' | append: publication.name }}{% endfor %}">{{group.name}}</div> |
| 32 | +<!-- year ends--> |
| 33 | + |
34 | 34 | {% assign this_year = group.items | reverse %} |
35 | | - |
| 35 | + |
36 | 36 | <!-- publications start --> |
37 | 37 | {% for publication in this_year %} |
38 | | - <div style="" class="element-item {{publication.publicationType}}">{% for author in publication.authors %}{% unless forloop.first %}& {% endunless %}{% assign l_name = author | split: ' ' | last %}{% assign f_name = author | split: ' ' | pop %}{{ l_name }}, {%for name in f_name%}{{name | split:'' | first}}.{% endfor%}, {% endfor %}<i>{% if publication.url%}<a href="{{publication.url}}" >{% endif %}{{publication.title}}{% if publication.url%}</a>{% endif %}</i>, {{publication.venue}} {{publication.year}}. {% if publication.blog %}<a class="icon blog" href="{{publication.blog}}"><i class="far fas fa-blog"></i></a>{% endif %} {% if publication.code %}<a class="icon code" href="{{publication.code}}"><i class="fas fa-fw fa-code"></i></a>{% endif %} {% if publication.slide%}<a class="icon slides" href="{{publication.slide}}"><i class="far fa-fw fa-file-powerpoint"></i></a>{% endif %} {% if publication.video%}<a class="icon video" href="{{publication.video}}"><i class="fas fa-fw fa-video"></i></a>{% endif %} {% if publication.poster %}<a class="icon poster" href="{{publication.poster}}"><i class="far fa-fw fa-file-image"></i></a>{% endif %}</div> |
| 38 | +<div style="" class="element-item {{publication.publicationType}}">{% for author in publication.authors %}{% if forloop.first %}{{author}}{% else %}, {{author}}{% endif %}{% endfor %}, {% if publication.url%}<a href="{{publication.url}}" >{% endif %}{{publication.title}},{% if publication.url%}</a>{% endif %} {{publication.venue}} {{publication.year}}. {% if publication.blog %}<a class="icon blog" href="{{publication.blog}}"><i class="far fas fa-blog"></i></a>{% endif %} {% if publication.code %}<a class="icon code" href="{{publication.code}}"><i class="fas fa-fw fa-code"></i></a>{% endif %} {% if publication.slide%}<a class="icon slides" href="{{publication.slide}}"><i class="far fa-fw fa-file-powerpoint"></i></a>{% endif %} {% if publication.video%}<a class="icon video" href="{{publication.video}}"><i class="fas fa-fw fa-video"></i></a>{% endif %} {% if publication.poster %}<a class="icon poster" href="{{publication.poster}}"><i class="far fa-fw fa-file-image"></i></a>{% endif %}</div> |
39 | 39 | {% endfor %} |
40 | | - <!-- publications end --> |
| 40 | +<!-- publications end --> |
41 | 41 | <div><br></div> |
42 | 42 | {% endfor %} |
43 | 43 | </div> |
44 | 44 | <!-- publication grouped by year ends--> |
45 | | - |
| 45 | + |
46 | 46 | <script> |
47 | 47 | // init Isotope |
48 | 48 | var $grid = $('.grid').isotope({ |
|
0 commit comments