Skip to content

Commit

Permalink
Исправил страницу блога
Browse files Browse the repository at this point in the history
  • Loading branch information
markshevchenko committed Mar 13, 2024
1 parent e38747b commit b356d48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions results/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1 class="h4 mb-4">Прошедшие события</h1>

{% for post in paginator.posts %}
<div class="card bg-transparent border-0">
<div class="row g-3">
<div class="row g-3 pt-3">
<div class="col-4">
{% if post.image %}
<img class="rounded" src="{{ post.image }}" alt="{{ post.title }}">
Expand All @@ -35,12 +35,12 @@ <h5><a href="{{ post.url }}" class="btn-link stretched-link text-reset fw-bold">
{% if paginator.previous_page %}
<li class="page-item"><a href="{{ paginator.previous_page_path }}" class="page-link">&laquo;</a></li>
{% else %}
<li class="page-item">&laquo;</li>
<li class="page-item disabled"><a href="{{ paginator.previous_page_path }}" class="page-link">&laquo;</a></li>
{% endif %}

{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="page-item active">{{ page }}</li>
<li class="page-item active"><a href="{{ site.paginate_path | relative_url | replace: ':num', page }}" class="page-link">{{ page }}</a></li>
{% elsif page == 1 %}
<li class="page-item"><a href="{{ site.paginate_path | replace: ':num/', '' | relative_url }}" class="page-link">{{ page }}</a></li>
{% else %}
Expand All @@ -51,7 +51,7 @@ <h5><a href="{{ post.url }}" class="btn-link stretched-link text-reset fw-bold">
{% if paginator.next_page %}
<li class="page-item"><a href="{{ paginator.next_page_path }}" class="page-link">&raquo;</a></li>
{% else %}
<li class="page-item">&raquo;</li>
<li class="page-item disabled"><a href="{{ paginator.next_page_path }}" class="page-link">&raquo;</a></li>
{% endif %}
</ul>
</nav>
Expand Down

0 comments on commit b356d48

Please sign in to comment.