paladini / ghost-on-github-pages

Ghost on Github Pages. Build and deploy Ghost for free in a few minutes.
http://paladini.github.io/ghost-on-github-pages-demo/
MIT License
485 stars 68 forks source link

Navigation Links Always Point To Localhost #10

Open jokorivai opened 6 years ago

jokorivai commented 6 years ago

On Ghost Control Panel, when configuring Navigation Items Link, I can't change link to Github domain, they keep change back to localhost.

I Know this is happen on Ghost side, but are there any workaround to solve this?

screen shot 2018-06-07 at 21 54 34
abhijithvijayan commented 6 years ago

Yes there is

Edit script and add this before "buster deploy"

sudo find static -name *.html -type f -exec sed -i '''s#http://localhost:2368#https://username.github.io#g' {} \;

Replace https://username.github.io with the repo's github page url.

This line will fix the links.

Feel free to check out the script I've on My Blog

Unfortunately the links you see in localhost will be exactly like that as in image but it will be fixed on the repo

jokorivai commented 6 years ago

@abhijithvijayan thank you. I managed to get them work.

paladini commented 5 years ago

@abhijithvijayan Can you make a PR with this code, please? I'll accept it, since it is helping regular users from this repo.

abhijithvijayan commented 5 years ago

@abhijithvijayan Can you make a PR with this code, please? I'll accept it, since it is helping regular users from this repo.

14