Skip to content

Commit bb73b8c

Browse files
committed
_layouts: Trim whitespace from staffer.html
1 parent cf4372e commit bb73b8c

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

_layouts/staffer.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<div class="staffer">
2-
{% if page.photo %}
3-
<img class="staffer-image" src="{{ site.baseurl }}{{ page.subpath }}{{ page.photo }}" alt="">
4-
{% endif %}
2+
{%- if page.photo -%}
3+
<img class="staffer-image" src="{{ site.baseurl }}{{ page.subpath }}{{ page.photo }}" alt="" width="{{ page.width }}" height="{{ page.height }}">
4+
{%- endif -%}
55
<div>
66
<h3 class="staffer-name">
7-
{% if page.website %}
7+
{%- if page.website -%}
88
<a href="{{ page.website }}">{{ page.name }}</a>
9-
{% else %}
9+
{%- else -%}
1010
{{ page.name }}
11-
{% endif %}
12-
{% if page.pronouns %}
11+
{%- endif -%}
12+
{%- if page.pronouns -%}
1313
<span class="staffer-pronouns">{{ page.pronouns }}</span>
14-
{% endif %}
14+
{%- endif -%}
1515
</h3>
16-
{% if page.email %}
16+
{%- if page.email -%}
1717
<p><a href="mailto:{{ page.email }}">{{ page.email }}</a></p>
18-
{% endif %}
19-
{% if page.section %}
18+
{%- endif -%}
19+
{%- if page.section -%}
2020
<p class="staffer-meta">Quiz Section: {{ page.section | markdownify | strip_html }}</p>
21-
{% endif %}
22-
{% if page.office-hours %}
21+
{%- endif -%}
22+
{%- if page.office-hours -%}
2323
<p class="staffer-meta">Office Hours: {{ page.office-hours | markdownify | strip_html }}</p>
24-
{% endif %}
24+
{%- endif -%}
2525
{{ content }}
2626
</div>
2727
</div>

0 commit comments

Comments
 (0)