Fix `endDate` conditional
This commit is contained in:
parent
4e8851782e
commit
a55832abcf
|
@ -107,6 +107,7 @@ t:
|
||||||
page: "Page"
|
page: "Page"
|
||||||
of: "of"
|
of: "of"
|
||||||
min_read: "min read"
|
min_read: "min read"
|
||||||
|
present: "Present"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Navigation
|
### Navigation
|
||||||
|
|
|
@ -18,6 +18,7 @@ t:
|
||||||
page: "Page"
|
page: "Page"
|
||||||
of: "of"
|
of: "of"
|
||||||
min_read: "min read"
|
min_read: "min read"
|
||||||
|
present: "Present"
|
||||||
|
|
||||||
# Google Fonts
|
# Google Fonts
|
||||||
google_fonts:
|
google_fonts:
|
||||||
|
|
|
@ -13,10 +13,10 @@
|
||||||
{% if e.startDate %}
|
{% if e.startDate %}
|
||||||
<span class="startDate">{{ e.startDate }}</span>
|
<span class="startDate">{{ e.startDate }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if e.endDate %}
|
{% if e.endDate == '' %}
|
||||||
<span class="endDate">{{ e.endDate | prepend: ' — ' }}</span>
|
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="endDate">{{ Present | prepend: ' — ' }}</span>
|
<span class="endDate">{{ e.endDate | prepend: ' — ' }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if e.area %}
|
{% if e.area %}
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
{% if v.startDate %}
|
{% if v.startDate %}
|
||||||
<span class="startDate">{{ v.startDate }}</span>
|
<span class="startDate">{{ v.startDate }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if v.endDate %}
|
{% if v.endDate == '' %}
|
||||||
<span class="endDate">{{ v.endDate | prepend: ' — ' }}</span>
|
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="endDate">{{ Present | prepend: ' — ' }}</span>
|
<span class="endDate">{{ v.endDate | prepend: ' — ' }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if v.summary %}
|
{% if v.summary %}
|
||||||
|
|
|
@ -22,10 +22,10 @@
|
||||||
{% if w.startDate %}
|
{% if w.startDate %}
|
||||||
<span class="startDate">{{ w.startDate }}</span>
|
<span class="startDate">{{ w.startDate }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if w.endDate %}
|
{% if w.endDate == '' %}
|
||||||
<span class="endDate">{{ w.endDate | prepend: ' — ' }}</span>
|
<span class="endDate">{{ site.data.theme.t.present | default: 'Present' | prepend: ' — ' }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="endDate">{{ Present | ' — ' }}</span>
|
<span class="endDate">{{ w.endDate | prepend: ' — ' }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% if w.summary %}
|
{% if w.summary %}
|
||||||
|
|
|
@ -18,6 +18,7 @@ t:
|
||||||
page: "Page"
|
page: "Page"
|
||||||
of: "of"
|
of: "of"
|
||||||
min_read: "min read"
|
min_read: "min read"
|
||||||
|
present: "Present"
|
||||||
|
|
||||||
# Google Fonts
|
# Google Fonts
|
||||||
google_fonts:
|
google_fonts:
|
||||||
|
|
Loading…
Reference in New Issue