diff --git a/templates/macros.html.j2 b/templates/macros.html.j2 index 11c2156..34db0e0 100644 --- a/templates/macros.html.j2 +++ b/templates/macros.html.j2 @@ -13,7 +13,7 @@ {%- macro format_years(row) -%} {%- if row.get("start_date") is not none -%} {{ row["start_date"].year }} - - {%- if row.get("end_date") is not none -%} + {%- if row.get("end_date") is not none and row.get("end_date") == row.get("end_date") -%} {{ row["end_date"].year }} {%- else -%} Present @@ -21,4 +21,4 @@ {%- elif row.get("date") is string -%} {{ row["date"][:4] }} {%- endif -%} -{%- endmacro -%} \ No newline at end of file +{%- endmacro -%}