blog: fix wrong link to page 1

This commit is contained in:
erciccione 2020-05-14 14:35:44 +02:00
parent 15121a888d
commit 3c6248881e
No known key found for this signature in database
GPG key ID: 762AF8C608E56CDF

View file

@ -44,7 +44,7 @@ title: titles.allposts
{% if page == paginator.page %} {% if page == paginator.page %}
<em>{{ page }}</em> <em>{{ page }}</em>
{% elsif page == 1 %} {% elsif page == 1 %}
<a href="{{ '/blog' | prepend: site.baseurl | replace: '//', '/' }}">{{ page }}</a> <a href="{{ site.baseurl_root }}/blog">{{ page }}</a>
{% else %} {% else %}
<a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a> <a href="{{ site.paginate_path | prepend: '/' | replace: '//', '/' | replace: ':num', page }}">{{ page }}</a>
{% endif %} {% endif %}