Skip to content

Commit

Permalink
Merge pull request sujaykundu777#202 from JamesDBartlett3/patch-1
Browse files Browse the repository at this point in the history
fixed pagination page number formatting issue
  • Loading branch information
sujaykundu777 authored Feb 7, 2023
2 parents 0ea004b + 08ea8a3 commit da57a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h6 class="card-subtitle mb-2 text-muted">{{ post.date | date: "%b %-d, %Y" }}</

{% for page in (1..paginator.total_pages) %}
{% if page == paginator.page %}
<li class="active pagination-link"><a>{{ page }}<span class="sr-only">(current)</span></a></li>
<li class="disabled pagination-link"><span><b>{{ page }}</b></span></li>
{% elsif page == 1 %}
<li class="pagination-link"><a href="/blog">{{ page }}</a></li>
{% else %}
Expand All @@ -62,4 +62,4 @@ <h6 class="card-subtitle mb-2 text-muted">{{ post.date | date: "%b %-d, %Y" }}</
{%- include blog_sidebar.html -%}

</div>
</div>
</div>

0 comments on commit da57a2f

Please sign in to comment.