Fix `endDate` conditional

This commit is contained in:
Michael Rose 2017-03-17 11:56:20 -04:00
parent 4e8851782e
commit a55832abcf
6 changed files with 15 additions and 12 deletions

View File

@ -107,6 +107,7 @@ t:
page: "Page"
of: "of"
min_read: "min read"
present: "Present"
```
### Navigation

View File

@ -18,6 +18,7 @@ t:
page: "Page"
of: "of"
min_read: "min read"
present: "Present"
# Google Fonts
google_fonts:

View File

@ -13,10 +13,10 @@
{% if e.startDate %}
<span class="startDate">{{ e.startDate }}</span>
{% endif %}
{% if e.endDate %}
<span class="endDate">{{ e.endDate | prepend: ' &mdash; ' }}</span>
{% if e.endDate == '' %}
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' &mdash; ' }}</span>
{% else %}
<span class="endDate">{{ Present | prepend: ' &mdash; ' }}</span>
<span class="endDate">{{ e.endDate | prepend: ' &mdash; ' }}</span>
{% endif %}
</div>
{% if e.area %}

View File

@ -22,10 +22,10 @@
{% if v.startDate %}
<span class="startDate">{{ v.startDate }}</span>
{% endif %}
{% if v.endDate %}
<span class="endDate">{{ v.endDate | prepend: ' &mdash; ' }}</span>
{% if v.endDate == '' %}
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' &mdash; ' }}</span>
{% else %}
<span class="endDate">{{ Present | prepend: ' &mdash; ' }}</span>
<span class="endDate">{{ v.endDate | prepend: ' &mdash; ' }}</span>
{% endif %}
</div>
{% if v.summary %}

View File

@ -22,10 +22,10 @@
{% if w.startDate %}
<span class="startDate">{{ w.startDate }}</span>
{% endif %}
{% if w.endDate %}
<span class="endDate">{{ w.endDate | prepend: ' &mdash; ' }}</span>
{% if w.endDate == '' %}
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' &mdash; ' }}</span>
{% else %}
<span class="endDate">{{ Present | ' &mdash; ' }}</span>
<span class="endDate">{{ w.endDate | prepend: ' &mdash; ' }}</span>
{% endif %}
</div>
{% if w.summary %}

View File

@ -18,6 +18,7 @@ t:
page: "Page"
of: "of"
min_read: "min read"
present: "Present"
# Google Fonts
google_fonts: