Skip to content

Commit d2ca426

Browse files
author
Dhruva Shaw
committed
done some changes
1 parent 8669f94 commit d2ca426

32 files changed

+1117
-618
lines changed

_includes/bib_search.liquid

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{% if site.bib_search %}
2+
<script src="{{ '/assets/js/bibsearch.js' | relative_url | bust_file_cache }}" type="module"></script>
3+
<input type="text" id="bibsearch" spellcheck="false" autocomplete="off" class="search bibsearch-form-input" placeholder="Type to filter">
4+
{% endif %}

_includes/cv/list.liquid

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<ul class="card-text font-weight-light list-group list-group-flush">
2+
{% for content in entry.contents %}
3+
<li class="list-group-item">{{ content }}</li>
4+
{% endfor %}
5+
</ul>

_includes/cv/list_groups.liquid

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<div class="list-groups">
2+
{% for content in entry.contents %}
3+
<div class="list-group col-md-6">
4+
<table class="table-cv list-group-table">
5+
<tbody>
6+
<tr>
7+
{% if content.icon %}
8+
<td class="list-group-category-icon"><i class="{{ content.icon }}"></i></td>
9+
{% else %}
10+
<td class="list-group-category-icon"></td>
11+
{% endif %}
12+
<!-- Calculate colspan number for category title -->
13+
{% assign i = 1 %}
14+
{% for item in content.items %}
15+
{% assign i = i | plus: 1 %}
16+
{% endfor %}
17+
<td colspan="{{ i }}" class="list-group-category">{{ content.category }}</td>
18+
</tr>
19+
{% for item in content.items %}
20+
<tr>
21+
<td></td>
22+
<td class="list-group-name">
23+
<b>{{ item.name }}</b>
24+
</td>
25+
{% if item.level %}
26+
<td class="list-group-level">{{ item.level }}</td>
27+
{% endif %}
28+
{% if item.school %}
29+
<td class="list-group-school">{{ item.school }}
30+
{% endif %}
31+
{% if item.time %}
32+
<br>
33+
<span class="list-group-time">{{ item.time }}</span>
34+
</td>
35+
{% else %}
36+
</td>
37+
{% endif %}
38+
{% if item.link %}
39+
<td class="list-group-link">
40+
<a href="{{ item.link }}" target="_blank" class="btncv z-depth-0">
41+
{% if item.linkname %}{{ item.linkname }}{% else %}DOC{% endif %}
42+
</a>
43+
</td>
44+
{% endif %}
45+
</tr>
46+
{% endfor %}
47+
</tbody>
48+
</table>
49+
</div>
50+
{% endfor %}
51+
</div>

_includes/cv/map.liquid

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<table class="table table-cv table-sm table-borderless table-responsive">
2+
{% for content in entry.contents %}
3+
<tr>
4+
<td class="p-1 pr-2 font-weight-bold">
5+
<b>{{ content.name }}</b>
6+
</td>
7+
{% if content.value %}
8+
<td class="p-1 pl-2 font-weight-light text">{{ content.value }}</td>
9+
{% endif %}
10+
{% if content.links %}
11+
<td class="p-1 pl-2 font-weight-light text">
12+
<div class="container-pdf">
13+
{% for item in content.links %}
14+
{% if item.link %}
15+
<div class="container-link-button">
16+
{% if item.name %}
17+
<a href="{{ item.link }}" target="_blank" class="btncv z-depth-0">{{ item.name }}</a>
18+
{% else %}
19+
<a href="{{ item.link }}" target="_blank" class="btncv z-depth-0">doc</a>
20+
{% endif %}
21+
</div>
22+
{% endif %}
23+
{% endfor %}
24+
</div>
25+
</td>
26+
{% endif %}
27+
</tr>
28+
{% endfor %}
29+
</table>

_includes/cv/nested_list.liquid

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<ul class="card-text font-weight-light list-group list-group-flush">
2+
{% for content in entry.contents %}
3+
<li class="list-group-item">
4+
<h5 class="font-italic">{{ content.title }}</h5>
5+
{% if content.items %}
6+
<ul class="subitems">
7+
{% for subitem in content.items %}
8+
<li>
9+
<span class="subitem">{{ subitem }}</span>
10+
</li>
11+
{% endfor %}
12+
</ul>
13+
{% endif %}
14+
</li>
15+
{% endfor %}
16+
</ul>

_includes/cv/time_table.liquid

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<ul class="card-text font-weight-light list-group list-group-flush">
2+
{% for content in entry.contents %}
3+
<li class="list-group-item">
4+
<div class="row">
5+
{% if content.year %}
6+
<div class="col-xs-2 cl-sm-2 col-md-2 text-center" style="width: 75px">
7+
<table class="table-cv">
8+
<tbody>
9+
<tr>
10+
<td>
11+
<span class="badge font-weight-bold danger-color-dark text-uppercase align-middle" style="min-width: 75px">
12+
{{- content.year -}}
13+
</span>
14+
</td>
15+
</tr>
16+
{% if content.location %}
17+
<tr>
18+
<td>
19+
<p class="location">
20+
<i class="fa-solid fa-location-dot iconlocation"></i>
21+
{{ content.location }}
22+
</p>
23+
</td>
24+
</tr>
25+
{% endif %}
26+
</tbody>
27+
</table>
28+
</div>
29+
{% endif %}
30+
<div class="col-xs-10 cl-sm-10 col-md-10 mt-2 mt-md-0">
31+
{% if content.title %}
32+
<h6 class="title font-weight-bold ml-1 ml-md-4">{{ content.title }}</h6>
33+
{% endif %}
34+
{% if content.department or content.institution %}
35+
<table class="table-cv ml-1 ml-md-4 institution">
36+
<tbody>
37+
{% if content.institution %}
38+
<tr>
39+
<td style="vertical-align: top; text-align: center" class="institution">
40+
<i class="fa-solid fa-building-columns iconinstitution"></i>
41+
</td>
42+
<td class="institution">{{ content.institution }}</td>
43+
</tr>
44+
{% endif %}
45+
{% if content.department %}
46+
<tr>
47+
<td style="vertical-align: top; text-align: center" class="department">
48+
<i class="fa-regular fa-circle-dot icondepartment"></i>
49+
</td>
50+
<td class="department">{{ content.department }}</td>
51+
</tr>
52+
{% endif %}
53+
</tbody>
54+
</table>
55+
{% endif %}
56+
{% if content.maindescription %}
57+
<div class="ml-1 ml-md-4">{{ content.maindescription }}</div>
58+
{% endif %}
59+
{% if content.description %}
60+
<ul class="items">
61+
{% for item in content.description %}
62+
<li>
63+
{% if item.contents %}
64+
<span class="item-title">{{ item.title }}</span>
65+
<ul class="subitems">
66+
{% for subitem in item.contents %}
67+
<li>
68+
<span class="subitem">{{ subitem }}</span>
69+
</li>
70+
{% endfor %}
71+
</ul>
72+
{% else %}
73+
<span class="item">{{ item }}</span>
74+
{% endif %}
75+
</li>
76+
{% endfor %}
77+
</ul>
78+
{% endif %}
79+
{% if content.items %}
80+
<ul class="items">
81+
{% for item in content.items %}
82+
<li>
83+
{% if item.contents %}
84+
<span class="item-title">{{ item.title }}</span>
85+
<ul class="subitems">
86+
{% for subitem in item.contents %}
87+
<li>
88+
<span class="subitem">{{ subitem }}</span>
89+
</li>
90+
{% endfor %}
91+
</ul>
92+
{% else %}
93+
<span class="item">{{ item }}</span>
94+
{% endif %}
95+
</li>
96+
{% endfor %}
97+
</ul>
98+
{% endif %}
99+
{% if content.linkitems %}
100+
<div class="container-links ml-1 ml-md-4">
101+
{% for item in content.linkitems %}
102+
{% if item.link %}
103+
<div class="container-link-button">
104+
{% if item.linkname %}
105+
<a href="{{ item.link }}" target="_blank" class="btncv z-depth-0">{{ item.linkname }}</a>
106+
{% else %}
107+
<a href="{{ item.link }}" target="_blank" class="btncv z-depth-0">doc</a>
108+
{% endif %}
109+
</div>
110+
{% endif %}
111+
{% endfor %}
112+
</div>
113+
{% endif %}
114+
</div>
115+
</div>
116+
</li>
117+
{% endfor %}
118+
</ul>

_includes/figure.liquid

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{% assign img_path = include.path | remove: '.jpg' | remove: '.jpeg' | remove: '.png' | remove: '.tiff' | remove: '.gif' %}
2+
{% assign parts = include.path | split: '.' %}
3+
{% assign ext = parts.last %}
24

35
<figure
46
{% if include.slot %}
@@ -14,17 +16,21 @@
1416
{% if site.imagemagick.enabled %}
1517
<source
1618
class="responsive-img-srcset"
17-
srcset="{% for i in site.imagemagick.widths %}{{ img_path | relative_url }}-{{ i }}.webp {{i}}w,{% endfor %}"
19+
{% if ext == 'gif' or ext == 'jpeg' or ext == 'jpg' or ext == 'png' or ext == 'tiff' %}
20+
srcset="{% for i in site.imagemagick.widths %}{{ img_path | relative_url }}-{{ i }}.webp {{ i }}w,{% endfor %}"
21+
type="image/webp"
22+
{% else %}
23+
srcset="{{ include.path | relative_url }}"
24+
{% endif %}
1825
{% if include.sizes %}
19-
sizes="{{include.sizes}}"
26+
sizes="{{ include.sizes }}"
2027
{% else %}
2128
sizes="95vw"
2229
{% endif %}
23-
type="image/webp"
2430
>
2531
{% endif %}
2632
<img
27-
src="{% if include.cache_bust %}{{ include.path | relative_url | bust_file_cache }}{% else %}{{ include.path | relative_url }}{% endif %}"
33+
src="{% if include.url %}{{ include.url }}{% elsif include.cache_bust %}{{ include.path | relative_url | bust_file_cache }}{% else %}{{ include.path | relative_url }}{% endif %}"
2834
{% if include.class %}
2935
class="{{ include.class }}"
3036
{% endif %}

_includes/head.liquid

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
<!-- Fonts & Icons -->
2525
<link defer rel="stylesheet" href="{{ '/assets/css/academicons.min.css' | relative_url | bust_file_cache }}">
26+
<link defer rel="stylesheet" href="{{ '/assets/css/scholar-icons.css' | relative_url | bust_file_cache }}">
2627
<link
2728
defer
2829
rel="stylesheet"
@@ -132,6 +133,25 @@
132133
crossorigin="anonymous"
133134
>
134135
{% endif %}
136+
<!-- Lightbox2 -->
137+
{% if page.images.lightbox2 %}
138+
<link
139+
defer
140+
rel="stylesheet"
141+
href="{{ site.third_party_libraries.lightbox2.url.css }}"
142+
integrity="{{ site.third_party_libraries.lightbox2.integrity.css }}"
143+
crossorigin="anonymous"
144+
>
145+
{% endif %}
146+
<!-- Photoswipe -->
147+
{% if page.images.photoswipe %}
148+
<link
149+
defer
150+
rel="stylesheet"
151+
href="{{ site.third_party_libraries.photoswipe.url.css }}"
152+
crossorigin="anonymous"
153+
>
154+
{% endif %}
135155
<!-- Image slider -->
136156
{% if page.images.slider %}
137157
<link
@@ -142,6 +162,26 @@
142162
crossorigin="anonymous"
143163
>
144164
{% endif %}
165+
<!-- Spotlight -->
166+
{% if page.images.spotlight %}
167+
<link
168+
defer
169+
rel="stylesheet"
170+
href="{{ site.third_party_libraries.spotlight.url.css }}"
171+
integrity="{{ site.third_party_libraries.spotlight.integrity.css }}"
172+
crossorigin="anonymous"
173+
>
174+
{% endif %}
175+
<!-- Venobox -->
176+
{% if page.images.venobox %}
177+
<link
178+
defer
179+
rel="stylesheet"
180+
href="{{ site.third_party_libraries.venobox.url.css }}"
181+
integrity="{{ site.third_party_libraries.venobox.integrity.css }}"
182+
crossorigin="anonymous"
183+
>
184+
{% endif %}
145185
{% endif %}
146186

147187
{% if page.tikzjax %}

_includes/header.liquid

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@
8787
{% if child.title == 'divider' %}
8888
<div class="dropdown-divider"></div>
8989
{% else %}
90-
<a class="dropdown-item {% if page.title == child.title %}active{% endif %}" href="{{ child.permalink | relative_url }}">
90+
<a
91+
class="dropdown-item {% if page.title == child.title %}active{% endif %}"
92+
href="{% if child.permalink contains '://' %}{{ child.permalink }}{% else %}{{ child.permalink | relative_url }}{% endif %}"
93+
>
9194
{{- child.title -}}
9295
</a>
9396
{% endif %}
@@ -97,7 +100,13 @@
97100
{% else %}
98101
{% assign parent_link = p.permalink | remove: 'index.html' %}
99102
<li class="nav-item {% if page.url contains parent_link %}active{% endif %}">
100-
{% if p.permalink contains '/blog/' %}{% assign url = '/blog/' %} {% else %}{% assign url = p.url %}{% endif %}
103+
{%- if p.permalink contains '://' -%}
104+
{%- assign url = p.permalink -%}
105+
{%- elsif p.permalink contains '/blog/' -%}
106+
{%- assign url = '/blog/' -%}
107+
{%- else -%}
108+
{%- assign url = p.url -%}
109+
{%- endif %}
101110
<a class="nav-link" href="{{ url | relative_url }}">
102111
{{- p.title }}
103112
{% if page.url contains p.url %}

_includes/metadata.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@
105105
{% assign sameaslinks = sameaslinks | push: link %}
106106
{% endif %}
107107
{% if site.research_gate_profile %}
108-
{% capture link %}https://www.researchgate.net/profile/{{site.research_gate_profile}}{% endcapture %}
108+
{% capture link %}https://www.researchgate.net/profile/{{ site.research_gate_profile }}{% endcapture %}
109109
{% assign sameaslinks = sameaslinks | push: link %}
110110
{% endif %}
111111
{% if site.scopus_id %}
112-
{% capture link %}https://www.scopus.com/authid/detail.uri?authorId={{site.scopus_id}}{% endcapture %}
112+
{% capture link %}https://www.scopus.com/authid/detail.uri?authorId={{ site.scopus_id }}{% endcapture %}
113113
{% assign sameaslinks = sameaslinks | push: link %}
114114
{% endif %}
115115
{% if site.github_username %}

0 commit comments

Comments
 (0)