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.
https://jekyll.github.io/jekyll-seo-tag
MIT License
1.66k stars 294 forks source link

Problem in link rel=next/prev code #483

Open sasadangelo opened 1 year ago

sasadangelo commented 1 year ago

Hi,

According to this discussion https://github.com/jekyll/jekyll-seo-tag/issues/482

I am opening this issue because there is a bug in this code: https://github.com/jekyll/jekyll-seo-tag/blob/6005f93781954db0fbce9f63686a5ea2ee9cacb6/lib/template.html#L52-L59

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.

sasadangelo commented 1 year ago

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

ashmaroli commented 1 year ago

@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"
sasadangelo commented 1 year ago

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