HubPress / hubpress.io

A web application to build your blog on GitHub
MIT License
2.81k stars 2.62k forks source link

Force push causes having articles published twice #528

Closed ochaloup closed 6 years ago

ochaloup commented 6 years ago

Hi,

I would like to ask for advice. By accident, I forced push to the gh-page branch of my blog page and it causes all the posts are doubled (they are published twice). When I did the force push it happens two instances of the same article being shown in the /hubpress/#/posts management gui and when I created a new post all articles are double published in html too.

Is there some way how to redo such double publish behaviour?

Thank you in advance Ondra

anthonny commented 6 years ago

Hi @ochaloup,

You can sync your content in the posts page with: image

Then go in your settings and click on save, it should regenerate all your published content

ochaloup commented 6 years ago

Yay, it works for me! Many thanks for the solution.