HubPress / hubpress.io

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

Error posts URLs. #515

Closed CKylinMC closed 6 years ago

CKylinMC commented 6 years ago

I've just forked hubpress and configured 'config.json' Then I've changed default branch and bound my custom domain, and then I pushed a post. But when I try to open my post, it tells my Error 404. I found that my post's link is not valid. (missing a "/" like "www.ckylin-mc.cn2017-8-11-hello-hubpress.adoc/" ) My custom domain: www.ckylin-mc.cn My repo: https://github.com/Cansll/blog

Sorry for my poor English.

image

anthonny commented 6 years ago

Hi @Cansll, Could you try with this date please:

:published_at: 2017-8-11

There is not enough validation on this field

CKylinMC commented 6 years ago

@anthonny I'm sure I have already done this. image image

anthonny commented 6 years ago

Oh sorry my bad:

:published_at: 2017-08-11
CKylinMC commented 6 years ago

I don't know what's the difference but when I have done this my post is disappeared.

image

CKylinMC commented 6 years ago

I try to publish again but I wait for a long time then I found... image

anthonny commented 6 years ago

Yes the "422" is a referenced bug, could you refresh your page and publish again please.

anthonny commented 6 years ago

I'm sorry it's a bit complicated :/

CKylinMC commented 6 years ago

Again... image

CKylinMC commented 6 years ago

@anthonny so what should I do?

anthonny commented 6 years ago

Could you go to the posts list and click on the sync button? Then retry please

CKylinMC commented 6 years ago

I have tried and it not works...Infinite loading...and my post has now changed to a draft...

anthonny commented 6 years ago

I will try to release the version that should fix the error 422. Maybe tonight or tomorrow, could you wait until this new version please?

CKylinMC commented 6 years ago

OK :)

anthonny commented 6 years ago

Hi here, the 0.8.1 is out, ould you upgrade your instance and tell me if now everything is ok please?

CKylinMC commented 6 years ago

Ok I'll try.

CKylinMC commented 6 years ago

I can push my posts now, but the wrong post link is still not fixed. image It seems missing a "/"...

CKylinMC commented 6 years ago

I mean it should be more like "www.ckylin-mc.cn/xxx" but not "www.ckylin-mc.cnxxx"...

CKylinMC commented 6 years ago

image

I see your repo(https://github.com/HubPress/blog.hubpress.io). Posts should be archived by date. But I can't find any archive folder in my repo. I just can found my posts in _posts and root folder. And they all ".adoc" format, not ".html".

anthonny commented 6 years ago

@Cansll like i said here https://github.com/HubPress/hubpress.io/issues/515#issuecomment-321832341, you must use a :published_at: with the format YYYY-MM-DD

With that it should be ok ;)

CKylinMC commented 6 years ago

@anthonny Wow thanks! (I finally found that it's my mistake haha! "2017-8-11" and "2017-08-11")

anthonny commented 6 years ago

Awesome! Thank you so much for having been so patient

CKylinMC commented 6 years ago

I'm sorry, but the "422 bug" appeared again...... I try to publish my post and then fall into infinite loading... I try to refresh and republish it but the "Publish post" button has changed to "Unpublish post" button, no post is generated and published...

Could you add some error handlers? Sometimes it falls into infinite loading but I don't know what is happening then wait and wait until I found errors in chrome console...

@anthonny