Skip to content

Commit

Permalink
Merge pull request #16 from SimonMueller/develop
Browse files Browse the repository at this point in the history
Release v1.0.3
  • Loading branch information
SimonMueller authored Jan 9, 2018
2 parents 7c72680 + cb44b8a commit 7c68363
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@

1. [](#new)
* Added CONTRIBUTING.md

# v1.0.3
## 9.01.2018

1. [](#bugfix)
* Fix pagination base_url with relative URLs
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: pluspunkt
version: 1.0.2
version: 1.0.3
description: A simple, responsive and modern Grav theme built with Kube
author:
name: Simon Müller
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grav-theme-pluspunkt",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple, responsive and modern Grav theme built with Kube",
"keywords": [
"pluspunkt",
Expand Down
4 changes: 4 additions & 0 deletions templates/partials/pagination.html.twig
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{% set pagination = pagination|default(page.collection.params.pagination) %}
{% set base_url = base_url|default(page.url) %}

{% if base_url == '/' %}
{% set base_url = '' %}
{% endif %}

{% if pagination|length > 1 %}
<nav class="pagination pager align-center">
<ul>
Expand Down

0 comments on commit 7c68363

Please sign in to comment.