HubPress / hubpress.io

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

Custom Domain & Netlify #498

Closed ghost closed 7 years ago

ghost commented 7 years ago

Is it possible to set Github Pages Hubpress up with a custom domain on Netlify.

Netlify is a static constant host for projects on Github Pages.

enjikaka commented 7 years ago

Hi @greatwarlive

If you just follow the HubPress steps like you would for a normal setup with GH pages, you should then be good to go setting it up in Netlify without any further modification!

Just create a new site in Netlify and choose your repo with HubPress, use the gh-pages branch as "Branch to deploy" and continue. I just tried this for http://enjikaka.github.io and set up this site with Netlify; https://choreographer-eagle-74080.netlify.com/

For custom domains you should be able to just follow Netlifys documentation for a normal Netlify site after these steps.

Did this help? :)

ghost commented 7 years ago

Hi @enjikaka

Thank you for your support. My blog is available at https://greatwarliveblog.netlify.com

There is only one problem, everytime I click on a post it goes to a .github.io domain. How do you sort this?

anthonny commented 7 years ago

@greatwarlive in the settings of your HubPress instance, you have to set the CNAME to greatwarlive.netlify.com

ghost commented 7 years ago

Thank you @anthonny

Is there anyway that you can add sitemaps to submit to Google? Brilliant work - keep it up!

anthonny commented 7 years ago

Not yet like i said here https://github.com/HubPress/hubpress.io/issues/493 But it will, i can't say when

Thank you for your kind words ❤️

anthonny commented 7 years ago

I think we can close this issue, right?

Thank you so much for your tests, @greatwarlive and @enjikaka, now i can explain how to use Netlify with HubPress 👍

anthonny commented 7 years ago

I think we can close this issue, right?

https://www.youtube.com/watch?v=mLPklM1w5-s