Skip to content

Commit 508cdf0

Browse files
committed
swap !=empty for !=nil and update conf.yml
1 parent 24416cb commit 508cdf0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Diff for: _data/conf.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ image-attributions:
2323
creator: Christopher Behrend
2424
image-title: Buffalo
2525
image-url: https://VisitBuffaloNiagara.com
26-
license-name: ''
27-
license-url: ''
26+
license-name:
27+
license-url:
2828

2929
########################
3030
# Program & Schedule

Diff for: _includes/homepage/jumbotron.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<div class="hero-image">
55
<picture>
6-
{% if site.data.conf.hero-image-filename-webp != empty %}
6+
{% if site.data.conf.hero-image-filename-webp != nil %}
77
<source srcset="/assets/img/theme-images/{{ site.data.conf.hero-image-filename-webp }}" type="image/webp">
88
{% endif %}
99
<img src="/assets/img/theme-images/{{ site.data.conf.hero-image-filename | site.data.conf.hero-image-source }}" alt="{{ site.data.conf.hero-image-alt }}">

Diff for: attributions.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<h2>Image Attributions</h2>
1414

1515
{% for attribution in site.data.conf.image-attributions %}
16-
<h3>{{ attribution.creator }}</h3>
17-
{% if attribution.image-title != empty and attribution.image-url != empty %}
16+
<h3 class="h4">{{ attribution.creator }}</h3>
17+
{% if attribution.image-title != nil and attribution.image-url != nil %}
1818
Image: <a href="{{ attribution.image-url }}">{{ attribution.image-title }}</a> <br />
1919
{% endif %}
20-
{% if attribution.license-name != empty and attribution.license-url != empty %}
20+
{% if attribution.license-name != nil and attribution.license-url != nil %}
2121
License: <a href="{{ attribution.license-url }}">{{ attribution.license-name }}</a> <br />
2222
{% endif %}
2323
{% endfor %}

0 commit comments

Comments
 (0)