-
- {% if page.header.metadata.author %}
- {% set author = page.header.metadata.author %}
- {% elseif page.header.author %}
- {% set author = page.header.author %}
- {% else %}
- {% set author = page.header.taxonomy.author[0] %}
- {% endif %}
-
- {% if author %}
- {% set avatar = author|replace(' ', '-')|lower %}
- {% endif %}
+ {% if page.header.author %}
+ {% set author = page.header.author %}
+ {% else %}
+ {% set author = page.header.taxonomy.author[0] %}
+ {% endif %}
+ {% if author %}
+ {% set avatar = author|replace(' ', '-')|lower %}
+ {% endif %}
@@ -37,9 +33,9 @@
{% if page.header.primaryImage %}
-
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
+
{{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% else %}
-
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
+
{{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }}
{% endif %}
@@ -93,4 +89,5 @@
-
\ No newline at end of file
+
+
diff --git a/templates/partials/miniposts.html.twig b/templates/partials/miniposts.html.twig
index c10b541..c449505 100644
--- a/templates/partials/miniposts.html.twig
+++ b/templates/partials/miniposts.html.twig
@@ -6,16 +6,16 @@
{{ 'FUTURE.FEATURED'|t }}
-
+
{% for p in page.evaluate({'@taxonomy.category':miniposts_category}).order('header.order', 'asc').slice(0,miniposts_number) %}
-
+
-
+
{% if p.header.primaryImage %}
{{ p.media[p.header.primaryImage].cropZoom(1038,437).loading('lazy').html('',p.title)|raw}}
{% else %}
@@ -23,7 +23,7 @@
{% endif %}
-
+
{% endfor %}
diff --git a/templates/partials/simplesearch_item.html.twig b/templates/partials/simplesearch_item.html.twig
index 3111f15..1606849 100644
--- a/templates/partials/simplesearch_item.html.twig
+++ b/templates/partials/simplesearch_item.html.twig
@@ -13,7 +13,7 @@
- {{ page.date|date(config.system.pages.dateformat.short) }}
+ {{ page.date|dateTranslate(config.system.pages.dateformat.short) }}
{{ page.summary|truncate(200)|raw }}