Skip to content

Commit 227e596

Browse files
committed
fix: only pics on the news front page for now, for performance reasons. Need to work on news pagination.
1 parent ddef5da commit 227e596

File tree

3 files changed

+20
-10
lines changed

3 files changed

+20
-10
lines changed

_includes/news.liquid

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,22 @@
2525
<i class="fa fa-file" style="margin-right: 4px" title="{{tt[0]}}"></i>
2626
{% endif %}
2727
</td>
28+
2829
<td>
2930
{% if item.image %}
3031
{% assign full_url = "https://www.evl.uic.edu/output/originals/" | append: item.image %}
31-
<div style="width: 300px; height:200px;overflow: hidden;">
32+
<div style="width: 250px; height:187px;overflow: hidden;">
3233
<a class="news-title" href="{{ item.url | relative_url }}">
3334
<img src="{{ full_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;" />
3435
</a>
3536
</div>
3637
{% else %}
37-
<div style="width: 300px; height:200px;overflow: hidden;">
38+
<div style="width: 250px; height:187px;overflow: hidden;">
3839
<img src="{{ 'assets/img/new-logo-small-480.webp' | relative_url }}" alt="{{ item.title }}" style="width: 100%; height: 100%; object-fit: cover;" />
3940
</div>
4041
{% endif %}
4142
</td>
43+
4244
<td>
4345
{% if item.inline %}
4446
{{ item.content | remove: '<p>' | remove: '</p>' | emojify }}
@@ -85,10 +87,9 @@
8587
<tbody>
8688
{% for year_group in grouped_by_year %}
8789
{% assign post_year = year_group.name | plus: 0 %}
88-
{% if post_year >= 1970 %}
8990
<!-- Year divider row -->
90-
<tr class="year-divider">
91-
<td colspan="4" style="padding-top: 0;"><h2 style="color: var(--global-theme-color);">{{ year_group.name }}</h2></td>
91+
<tr>
92+
<td colspan="4" style="padding-top: 0;"><h2 class="year-divider">{{ year_group.name }}</h2></td>
9293
</tr>
9394

9495
{% for item in year_group.items %}
@@ -106,7 +107,9 @@
106107
<i class="fa fa-file" style="margin-right: 4px" title="{{tt[0]}}"></i>
107108
{% endif %}
108109
</td>
110+
109111
<td>
112+
{% comment %}
110113
{% if item.image %}
111114
{% assign full_url = "https://www.evl.uic.edu/output/originals/" | append: item.image %}
112115
<div style="width: 300px; height:200px;overflow: hidden;">
@@ -121,7 +124,9 @@
121124
</a>
122125
</div>
123126
{% endif %}
127+
{% endcomment %}
124128
</td>
129+
125130
<td>
126131
{% if item.inline %}
127132
{{ item.content | remove: '<p>' | remove: '</p>' | emojify }}
@@ -131,9 +136,7 @@
131136
</td>
132137
</tr>
133138
{% endfor %}
134-
{% endif %}
135139
{% endfor %}
136-
137140
</tbody>
138141
</table>
139142
</div>

_layouts/profiles.liquid

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ layout: page
4444
<div class="status-section people-status-anchor-target" id="{{ status }}">
4545
<div class="row">
4646
<div class="col-12">
47-
<h2 class="people-category" id="{{ status }}">{{
48-
display_names[forloop.index0] }}</h2>
47+
<h2 class="people-category" id="{{ status }}">{{ display_names[forloop.index0] }}</h2>
4948
</div>
5049
{% assign people_count = people_in_status | size %}
5150

_sass/_base.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1457,4 +1457,12 @@ figure.cover {
14571457

14581458
.people-anchor-target {
14591459
scroll-margin-top: 150px;
1460-
}
1460+
}
1461+
1462+
h2.year-divider {
1463+
color: var(--global-theme-color);
1464+
border-top: 1px solid var(--global-divider-color);
1465+
padding-top: 1rem;
1466+
margin-top: 2rem;
1467+
text-align: right;
1468+
}

0 commit comments

Comments
 (0)