Refactorizacion servicios & industria
This commit is contained in:
@ -14,7 +14,6 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% block content %}
|
||||
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"></script>
|
||||
|
||||
<p class="mb-5 position-relative fs-4 fw-bold sp-module-title">{{ post.title }}</p>
|
||||
{# {{ dump(post.children) }} #}
|
||||
|
||||
@ -3,12 +3,13 @@
|
||||
{% block content %}
|
||||
<h1 class="my-5 position-relative fs-3 fw-bold sp-module-title">{{ post.title }}</h1>
|
||||
|
||||
<section class="section-industria">
|
||||
{% if posts_industry |length > 0 %}
|
||||
{% for noticias in posts_industry %}
|
||||
|
||||
{% set imagen = noticias.thumbnail.src | default(imagen_default) %}
|
||||
{% set alt = noticias.thumbnail.alt | default('Imagen por defecto') %}
|
||||
<section class="section-industria">
|
||||
{% if post.children('page') |length > 0 %}
|
||||
{% for subpagIndustria in post.children('page') %}
|
||||
|
||||
{% set imagen = subpagIndustria.thumbnail.src | default(imagen_default) %}
|
||||
{% set alt = subpagIndustria.thumbnail.alt | default('Imagen por defecto') %}
|
||||
|
||||
<div class="card my-3 position-relative posts-noticias">
|
||||
<div class="row g-0">
|
||||
@ -19,8 +20,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">{{ subpagIndustria.title }}</h5>
|
||||
<p class="card-text"> {{subpagIndustria.content}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -31,12 +32,12 @@
|
||||
<p>{{ __('No hay artículos', 'Sindikatua') }}</p>
|
||||
{% endif %}
|
||||
|
||||
<!-- PAGINATION -->
|
||||
{% if pagination %}
|
||||
<!-- NO HAY PAGINATION -->
|
||||
{# {% if pagination %}
|
||||
<div class="pagination-custom mt-5">
|
||||
{% include 'partials/pagination-custom.twig' %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %} #}
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
@ -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