ADD new pages

This commit is contained in:
2025-07-30 11:25:56 +00:00
parent edb558c2d5
commit cd6bac2844
8 changed files with 309 additions and 15 deletions

View File

@ -0,0 +1,26 @@
<div class="alert alert-light m-0 mb-2 p-2" role="alert">
<nav aria-label="breadcrumb">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="{{ site.url }}">Inicio</a></li>
{% if post.post_type == 'page' %}
{# Si tiene padres, recorrerlos #}
{% set ancestors = post.ancestors %}
{% for ancestor in ancestors|reverse %}
<li class="breadcrumb-item">
<a href="{{ ancestor.link }}">{{ ancestor.title }}</a>
</li>
{% endfor %}
<li class="breadcrumb-item active" aria-current="page">{{ post.title }}</li>
{% elseif post.post_type == 'post' %}
<li class="breadcrumb-item"><a href="{{ site.url }}/blog">Blog</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ post.title }}</li>
{% elseif post.post_type != 'page' %}
<li class="breadcrumb-item"><a href="{{ post.type_archive_link }}">{{ post.post_type_label }}</a></li>
<li class="breadcrumb-item active" aria-current="page">{{ post.title }}</li>
{% endif %}
</ol>
</nav>
</div>

View File

@ -6,10 +6,10 @@
<div class="col-lg-8 col-12 mb-4 mb-lg-0">
<p class="mb-4 position-relative fs-4 fw-bold sp-module-title">VÍDEOS</p>
{% if videos_carousel %}
{% if videos %}
<div id="videosCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
{% for pair in videos_carousel|batch(2, null) %}
{% for pair in videos|batch(2, null) %}
<div class="carousel-item {% if loop.first %}active{% endif %}">
<div class="row">
@ -68,7 +68,7 @@
</div>
{# carousel controls buttons#}
{% if videos_carousel|length > 1 %}
{% if videos|length > 1 %}
<button class="carousel-control-prev" type="button" data-bs-target="#videosCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Anterior</span>
@ -79,7 +79,7 @@
</button>
{# <div class="carousel-indicators">
{% for pair in videos_carousel|batch(2, null) %}
{% for pair in videos|batch(2, null) %}
<button type="button" data-bs-target="#videosCarousel" data-bs-slide-to="{{ loop.index0 }}"
{% if loop.first %}class="active"{% endif %} aria-label="Slide {{ loop.index }}"></button>
{% endfor %}