Style img posts & refactor

This commit is contained in:
2025-10-17 11:25:33 +00:00
parent 78ff00ff53
commit a198ea6eb3
6 changed files with 39 additions and 92 deletions

View File

@ -3,21 +3,20 @@
{% block content %}
<h1 class="my-5 position-relative fs-3 fw-bold sp-module-title">{{ post.title }}</h1>
<section class="posts-noticias">
<section class="section-noticias">
{% if posts_noticias %}
{% for noticias in posts_noticias %}
{% 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">
<div class="card my-3 position-relative posts-noticias">
<div class="row g-0">
<div class="col-md-4">
<a href="{{ noticias.link }}" title="{{ noticias.title }}">
<img src="{{ imagen }}"
class="rounded-start object-fit-cover w-100 h-100 img-noticias"
alt="{{ alt }}"
style="min-height: 200px;"
/>
</a>
</div>