diff --git a/templates/blog.html.twig b/templates/blog.html.twig index 839c274..eae3e74 100755 --- a/templates/blog.html.twig +++ b/templates/blog.html.twig @@ -44,8 +44,11 @@ {% if show_breadcrumbs and config.plugins.breadcrumbs.enabled %} {% include 'partials/breadcrumbs.html.twig' %} {% endif %} + {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }} + + {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + {% endif %} {{ page.content|raw }} diff --git a/templates/default.html.twig b/templates/default.html.twig index 7cbd75e..9c7d2e8 100755 --- a/templates/default.html.twig +++ b/templates/default.html.twig @@ -18,9 +18,11 @@ {% endif %} - + {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }} + + {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + {% endif %} {{ page.content|raw }} diff --git a/templates/modular.html.twig b/templates/modular.html.twig index c639e0c..6a99e5a 100755 --- a/templates/modular.html.twig +++ b/templates/modular.html.twig @@ -27,7 +27,9 @@ {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }} + + {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + {% endif %} {{ page.content|raw}} diff --git a/templates/partials/blog_item.html.twig b/templates/partials/blog_item.html.twig index d6ea18c..6bcf492 100644 --- a/templates/partials/blog_item.html.twig +++ b/templates/partials/blog_item.html.twig @@ -7,8 +7,10 @@ {% else %} {% set author = page.taxonomy.author[0] %} {% endif %} - + {% set avatar = page.media[page.header.avatarImage].url|e %} + {% set image = page.media[page.header.primaryImage] ?: page.media.images|first %} + {% set title = page.title|raw %}
@@ -44,11 +46,11 @@
- {% if page.header.primaryImage %} - {{ page.media[page.header.primaryImage].cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} - {% elseif page.media.images %} - {{ page.media.images|first.cropZoom(1038,437).loading('lazy').html(page.title, page.title, 'image featured')|raw }} - {% endif %} + {% if image %} + + {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + + {% endif %}
{% if page.header.continue_link is sameas(false) %} diff --git a/templates/partials/social.html.twig b/templates/partials/social.html.twig index d0a298b..fe55af7 100644 --- a/templates/partials/social.html.twig +++ b/templates/partials/social.html.twig @@ -1,3 +1,3 @@ {% for item in theme_config.social %} -
  • {{item.name}}
  • +
  • {{item.name}}
  • {% endfor %} \ No newline at end of file diff --git a/templates/portfolio.html.twig b/templates/portfolio.html.twig index ce493d1..a810476 100755 --- a/templates/portfolio.html.twig +++ b/templates/portfolio.html.twig @@ -21,7 +21,9 @@
    {% if image %} - {{ image.cropZoom(1038,437).loading('lazy').html(title, title, 'image featured')|raw }} + + {{ image.cropZoom(1038,437).loading('lazy').html(title, title)|raw }} + {% endif %} {{ page.content|raw}}