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

Posts not loading on home or posts page #32

Closed
jamestagal opened this issue Jul 19, 2022 · 4 comments
Closed

Posts not loading on home or posts page #32

jamestagal opened this issue Jul 19, 2022 · 4 comments

Comments

@jamestagal
Copy link
Owner

jamestagal commented Jul 19, 2022

Hi @jimafisk

After pushing some minor updates yesterday, I am not seeing post load either on the home page or the post page, see screenshots below. I can only see the navigation.
Screen Shot 2022-07-19 at 10 54 12 am
and on Posts page
Screen Shot 2022-07-19 at 10 54 27 am

The weird thing is if I click on a page, in the nav such as 1, it will load the posts otherwise it is blank. It is like as if the root is not indexing the posts...See screenshot below.
Screen Shot 2022-07-19 at 10 56 33 am

Also serving this site locally is fine. All content loads as expected.
Could it be a caching issues? though i cleared my browsers cached images and files.
I wonder whether you might take a look for me, and see if you get the same behaviour please.

Ben

@jimafisk
Copy link
Collaborator

I expected this, I pushed out a breaking change to pagination: plentico/plenti#191 (comment). Typically I should wait to the next minor release (v0.6.0) to do this, but selfishly I needed it for a project so I just did it in the current 0.5.x (Sorry!).

Your site is still working locally because you're probably still on plenti 0.5.9. If you update to 0.5.10 locally it will break your site (but you should do this anyways because of the fix below).

I just pushed an update to the compendium theme for this: plenti-themes/compendium@ad5210d

To pull this update into your project just run plenti theme update compendium. Then track the changes and push it up to your repo and the build should work again. Just let me know if that gives you any trouble!

@jamestagal
Copy link
Owner Author

jamestagal commented Jul 19, 2022

Hi @jimafisk
Thanks for your response. no worries. I updated plenti to version 0.5.10 and the compendium theme and pushed the changes back..as you outlined. Thanks.

Though that fixed the home page, and the content loads there but not on the Posts page.

Ben
UPDATE
I worked it out...I am overriding the compendium projs.svelte file so I just added the change you made, see below and that worked :)

$: currentPage = content.pager ? content.pager : 1;

Ben

@jamestagal
Copy link
Owner Author

Hi @jimafisk
I just pushed my change back and all is working nicely :)

Thanks again for your help..Have a great day.
Ben

@jimafisk
Copy link
Collaborator

Awesome, glad it worked!

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

2 participants