Fix first page link in pagination

This commit is contained in:
Michal Bureš 2019-08-15 08:45:08 +02:00 committed by GitHub
parent eb23323bd6
commit 4c19f68355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ layout: default
{% if page == paginator.page %} {% if page == paginator.page %}
<span class="webjeda">{{ page }}</span> <span class="webjeda">{{ page }}</span>
{% elsif page == 1 %} {% elsif page == 1 %}
<a href="/">{{ page }}</a> <a href="{{ '/' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a>
{% else %} {% else %}
<a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> <a href="{{ site.paginate_path | prepend: site.baseurl | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %} {% endif %}