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

In archieve page, next/previous page button's URL has an issue. [SOLVED] #18

Closed
s-azizoglu opened this issue Jun 13, 2020 · 1 comment
Closed

Comments

@s-azizoglu
Copy link

s-azizoglu commented Jun 13, 2020

Hi @onweru !
I recently discovered your that theme and trying to migrate my site.
I think it has great details. Really thank you!

When I try to click next or previous page in archive page (or page of posts), pager doesn't include the base URL that is domain name. I couldn't solve but working on it:

/layouts/partials/pager.html is our working file, if I'm not wrong.

In that file's this kind of line;
<a href = '{{ $root }}{{ $paginator.Prev.URL }}' class = ' pager_item pager_prev'></a>
$root has a issue. It should refer to .Site.BaseURL but it does not. You can also see from the screenshot. URL contains only post/page/2/
page-number

How could we solve this?

(I work on Windows 10 with R Studio, blogdown package. So, it may be caused or related with blogdown. If I can find a solution, I'll let you know. Because there was a same issue in your swift theme on the same working environment.)

@s-azizoglu s-azizoglu changed the title In archieve page, next/previous page button's URL has an issue. In archieve page, next/previous page button's URL has an issue. [SOLVED] Jun 13, 2020
@s-azizoglu
Copy link
Author

Solution
There should be a dot between {{ $root }} and {{ $paginator.Prev.URL }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant