Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace /index.html in meta for pagination pagers #484

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replace /index.html in meta for pagination pages
  • Loading branch information
ashmaroli committed Jan 30, 2023
commit a1adcdb4b9858dca76c790d2bfaf4d490f388af9
4 changes: 2 additions & 2 deletions lib/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
{% endif %}

{% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}" />
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url | replace: '/index.html', '/' }}" />
{% endif %}
{% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}" />
<link rel="next" href="{{ paginator.next_page_path | absolute_url | replace: '/index.html', '/' }}" />
{% endif %}

{% if seo_tag.image %}
Expand Down