diff --git a/themes/intotheeast/templates/macros/date-range.html.twig b/themes/intotheeast/templates/macros/date-range.html.twig index 72a510e..83799d0 100644 --- a/themes/intotheeast/templates/macros/date-range.html.twig +++ b/themes/intotheeast/templates/macros/date-range.html.twig @@ -1,4 +1,4 @@ -{% macro format_date_range(start_date, end_date) %} +{%- macro format_date_range(start_date, end_date) -%} {%- if end_date is not empty and end_date|date('Y-m-d') != start_date|date('Y-m-d') -%} {%- set sd = start_date|date('d') -%} {%- set sm = start_date|date('M') -%} @@ -16,4 +16,4 @@ {%- else -%} {{- start_date|date('d M Y') -}} {%- endif %} -{% endmacro %} +{%- endmacro -%}