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