diff --git a/config/system.yaml b/config/system.yaml index b183262..18aa9f0 100644 --- a/config/system.yaml +++ b/config/system.yaml @@ -128,7 +128,7 @@ twig: cache: false debug: true auto_reload: true - autoescape: true + autoescape: false undefined_functions: true undefined_filters: true safe_functions: { } diff --git a/themes/intotheeast/templates/entry.html.twig b/themes/intotheeast/templates/entry.html.twig index 7529b8c..9961092 100644 --- a/themes/intotheeast/templates/entry.html.twig +++ b/themes/intotheeast/templates/entry.html.twig @@ -28,10 +28,10 @@ {% if page.header.location_city or page.header.location_country %}
- 📍 - {% if page.header.location_city %}{{ page.header.location_city }}{% endif %} - {% if page.header.location_city and page.header.location_country %}, {% endif %} - {% if page.header.location_country %}{{ page.header.location_country }}{% endif %} + {%- set _loc = [] -%} + {%- if page.header.location_city -%}{%- set _loc = _loc|merge([page.header.location_city]) -%}{%- endif -%} + {%- if page.header.location_country -%}{%- set _loc = _loc|merge([page.header.location_country]) -%}{%- endif -%} + 📍 {{ _loc|join(', ') }}
{% endif %} {% if page.header.weather_desc or page.header.weather_temp_c %} @@ -51,7 +51,7 @@{{ entry.summary }}
+{{ entry.summary|striptags|slice(0, 250)|trim }}
Read entry →