refactorizar

This commit is contained in:
2025-10-14 15:08:21 +00:00
parent d1e5638ed2
commit 4abf91910f
10 changed files with 367 additions and 349 deletions

View File

@ -10,7 +10,7 @@
{% for noticias in posts_opinion %}
{% set imagen = noticias.thumbnail.src | default('/wp-content/uploads/2025/10/Imagen_por_defecto.png') %}
{% set imagen = noticias.thumbnail.src | default('/wp-content/uploads/2025/10/Imagen_por_defecto_300.jpg') %}
{% set alt = noticias.thumbnail.alt | default('Imagen por defecto') %}
<div class="card my-3 position-relative">
@ -20,7 +20,7 @@
<img src="{{ imagen }}"
class="rounded-start object-fit-cover w-100 h-100 img-noticias"
alt="{{ alt }}"
style="min-height: 200px;"
style="min-height: 200px; max-height: 300px;"
/>
</a>
</div>