jekyll / jekyll-seo-tag

A Jekyll plugin to add metadata tags for search engines and social networks to better index and display your site's content.

Home Page:https://jekyll.github.io/jekyll-seo-tag

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem in link rel=next/prev code

sasadangelo opened this issue · comments

Hi,

According to this discussion
#482

I am opening this issue because there is a bug in this code:

{% if paginator.previous_page %}
<link rel="prev" href="{{ paginator.previous_page_path | absolute_url }}" />
{% endif %}
{% if paginator.next_page %}
<link rel="next" href="{{ paginator.next_page_path | absolute_url }}" />
{% endif %}

that. generates in my website:
https://www.code4projects.net/blog/page/2/

This code:

<link rel="prev" href="https://www.code4projects.net/blog/index.html" />
<link rel="next" href="https://www.code4projects.net/blog/page/3/index.html" />

with extra index.html suffix.

Hi,
Any updates? Is there aany chance to have this problem fixed?

@sasadangelo, since you're deploying your site via GH Actions, you may patch this with the following in your Gemfile. (There is no ETA regarding when a release will be shipped with this patch).

gem "jekyll-seo-tag", github: "jekyll/jekyll-seo-tag", ref: "refs/pull/484/head"

Ok thank you. Please let me know when it will be available in a next release.