Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
koilebeit committed Oct 31, 2024
1 parent 1c315d0 commit e855c1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion _layouts/timeline_edtf.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ <h2>
{% assign first_year = sorted_years | first | split: ':' %}
{% assign last_year = sorted_years | last | split: ':' %}
{% if sorted_years.size > 0 %}
{% if first_year.size == 2 and last_year.size == 2 and first_year[0] != '' and first_year[1] != '' and last_year[0] != '' and last_year[1] != '' %}
{% if first_year.size == 2
and last_year.size == 2
and first_year[0] != ''
and first_year[1] != ''
and last_year[0] != ''
and last_year[1] != ''
%}
<a href="#y{{ first_year[1] }}">{{ first_year[0] }}</a> &#8211;
<a href="#y{{ last_year[1]}}">{{ last_year[0] }}</a>
{% else %}
Expand Down

0 comments on commit e855c1e

Please sign in to comment.