Refactorizacion servicios & industria
This commit is contained in:
@ -3,17 +3,12 @@
|
||||
{% block content %}
|
||||
<h1 class="my-5 position-relative fs-3 fw-bold sp-module-title">{{ post.title }}</h1>
|
||||
|
||||
|
||||
{# {% for pagina in post.children('page') %}
|
||||
{{ pagina.title }}
|
||||
{% endfor %} #}
|
||||
|
||||
<section class="section-servicios">
|
||||
{% if subpaginas_servicios |length > 0 %}
|
||||
{% for noticias in subpaginas_servicios %}
|
||||
{% if post.children('page') |length > 0 %}
|
||||
{% for SubpagServicio in post.children('page') %}
|
||||
|
||||
{% set imagen = noticias.thumbnail.src | default(imagen_default) %}
|
||||
{% set alt = noticias.thumbnail.alt | default('Imagen por defecto') %}
|
||||
{% set imagen = SubpagServicio.thumbnail.src | default(imagen_default) %}
|
||||
{% set alt = SubpagServicio.thumbnail.alt | default('Imagen por defecto') %}
|
||||
|
||||
<div class="card my-3 position-relative posts-noticias">
|
||||
<div class="row g-0">
|
||||
@ -24,8 +19,8 @@
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title-text fs-4 fw-bold border-dark border-bottom">{{ noticias.title }}</h5>
|
||||
<p class="card-text"> {{noticias.content}}</p>
|
||||
<h5 class="card-title-text fs-4 fw-bold border-dark border-bottom">{{ SubpagServicio.title }}</h5>
|
||||
<p class="card-text"> {{SubpagServicio.content}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -36,13 +31,13 @@
|
||||
<p>{{ __('No hay artículos', 'Sindikatua') }}</p>
|
||||
{% endif %}
|
||||
|
||||
<!-- PAGINATION -->
|
||||
{% set pagination = subpaginas_servicios.pagination %}
|
||||
<!-- NO HAY PAGINATION -->
|
||||
{# {% set pagination = post.children.pagination %}
|
||||
{% if pagination %}
|
||||
<div class="pagination-custom mt-5">
|
||||
{% include 'partials/pagination-custom.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %} #}
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user