Merge pull request #981

blog: fix wrong link to page 1
This commit is contained in:
luigi1111 2020-05-15 13:44:46 -05:00 committed by GitHub
commit cffce097a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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