-
Notifications
You must be signed in to change notification settings - Fork 6
/
students.html
98 lines (82 loc) · 3.96 KB
/
students.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
layout: page
permalink: /students
title: Students
description: Present Students at Department of Statistcs, Visva-Bharati
---
{% assign ug_years = "1st Year,2nd Year,3rd Year" | split: "," %}
{% assign pg_years = "1st Year,2nd Year" | split: "," %}
<h2 id="ug"><strong>Undergraduate Students</strong></h2>
{% for year in ug_years %}
<div id="ug-{{ year | replace: ' ', '-' | downcase }}" class="row">
<a href="#ug-{{ year | replace: ' ', '-' | downcase }}">
<h3 class="pt-5">{{ year }}</h3>
</a>
<hr>
{% for student in site.students %}
{% if student.ug %}
{% capture current_year %}{{ "now" | date: "%Y" }}{% endcapture %}
{% assign current_year = current_year | plus: 0 %}
{% assign ug_year = student.ug | plus: 0 %}
{% assign year_difference = current_year | minus: ug_year %}
{% if year == "1st Year" and year_difference == 0 %}
<div class="col-lg-3 col-md-4 col-sm-6 mb-5 text-truncate">
<a class="list-group-item " href="{{ student.url | relative_url }}">
<img loading="lazy" src="{{ student.image }}" alt="{{ student.title }}" width="32" height="32" class="rounded me-2" >
<span><strong>{{ student.title }}</strong></span>
</a>
</div><!-- Col end -->
{% endif %}
{% if year == "2nd Year" and year_difference == 1 %}
<div class="col-lg-3 col-md-4 col-sm-6 mb-5 text-truncate">
<a class="list-group-item " href="{{ student.url | relative_url }}">
<img loading="lazy" src="{{ student.image }}" alt="{{ student.title }}" width="32" height="32" class="rounded me-2" >
<span><strong>{{ student.title }}</strong></span>
</a>
</div><!-- Col end -->
{% endif %}
{% if year == "3rd Year" and year_difference == 2 %}
<div class="col-lg-3 col-md-4 col-sm-6 mb-5 text-truncate">
<a class="list-group-item " href="{{ student.url | relative_url }}">
<img loading="lazy" src="{{ student.image }}" alt="{{ student.title }}" width="32" height="32" class="rounded me-2" >
<span><strong>{{ student.title }}</strong></span>
</a>
</div><!-- Col end -->
{% endif %}
{% endif %}
{% endfor %}
</div><!-- Row end -->
{% endfor %}
<h2 class="pt-5" id="pg"><strong>Postgraduate Students</strong></h2>
{% for year in pg_years %}
<div id="pg-{{ year | replace: ' ', '-' | downcase }}" class="row">
<a href="#pg-{{ year | replace: ' ', '-' | downcase }}">
<h3 class="pt-5">{{ year }}</h3>
</a>
<hr>
{% for student in site.students %}
{% if student.pg %}
{% capture current_year %}{{ "now" | date: "%Y" }}{% endcapture %}
{% assign current_year = current_year | plus: 0 %}
{% assign pg_year = student.pg | plus: 0 %}
{% assign year_difference = current_year | minus: pg_year %}
{% if year == "1st Year" and year_difference == 0 %}
<div class="col-lg-3 col-md-4 col-sm-6 mb-5 text-truncate">
<a class="list-group-item" href="{{ student.url | relative_url }}">
<img loading="lazy" src="{{ student.image }}" alt="{{ student.title }}" width="32" height="32" class="rounded me-2" >
<span><strong>{{ student.title }}</strong></span>
</a>
</div><!-- Col end -->
{% endif %}
{% if year == "2nd Year" and year_difference == 1 %}
<div class="col-lg-3 col-md-4 col-sm-6 mb-5 text-truncate">
<a class="list-group-item " href="{{ student.url | relative_url }}">
<img loading="lazy" src="{{ student.image }}" alt="{{ student.title }}" width="32" height="32" class="rounded me-2" >
<span><strong>{{ student.title }}</strong></span>
</a>
</div><!-- Col end -->
{% endif %}
{% endif %}
{% endfor %}
</div><!-- Row end -->
{% endfor %}