Skip to content

Commit

Permalink
Merge branch 'release/1.4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Feb 3, 2024
2 parents 98ec07e + df00a70 commit ed158b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.4.5
## 02/03/2024

1. [](#bugfix)
* Fixed an error in pagination URLs with system level Absolute URLs enabled [#60](https://github.com/getgrav/grav-plugin-pagination/issues/60)

# v1.4.4
## 05/10/2023

Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Pagination
slug: pagination
type: plugin
version: 1.4.4
version: 1.4.5
description: "**Pagination** is a very useful plugin to help navigate a large collection of pages, such as for a **blog**."
icon: list-ol
author:
Expand Down
6 changes: 3 additions & 3 deletions templates/partials/pagination.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<ul class="pagination">
{% if pagination.hasPrev %}
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl)|replace({'//':'/'}) %}
{% set url = (base_url ~ pagination.params ~ pagination.prevUrl|replace({'//':'/'})) %}
<li><a rel="prev" href="{{ url }}">&laquo;</a></li>
{% else %}
<li><span>&laquo;</span></li>
Expand All @@ -16,15 +16,15 @@
{% if paginate.isCurrent %}
<li><span class="active">{{ paginate.number }}</span></li>
{% elseif paginate.isInDelta %}
{% set url = (base_url ~ pagination.params ~ paginate.url)|replace({'//':'/'}) %}
{% set url = (base_url ~ pagination.params ~ paginate.url|replace({'//':'/'})) %}
<li><a href="{{ url }}">{{ paginate.number }}</a></li>
{% elseif paginate.isDeltaBorder %}
<li class="gap"><span>&hellip;</span></li>
{% endif %}

{% endfor %}
{% if pagination.hasNext %}
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl)|replace({'//':'/'}) %}
{% set url = (base_url ~ pagination.params ~ pagination.nextUrl|replace({'//':'/'})) %}
<li><a rel="next" href="{{ url }}">&raquo;</a></li>
{% else %}
<li><span>&raquo;</span></li>
Expand Down

0 comments on commit ed158b0

Please sign in to comment.