ghost-on-github-pages icon indicating copy to clipboard operation
ghost-on-github-pages copied to clipboard

Navigation Links Always Point To Localhost

Open jokorivai opened this issue 7 years ago • 4 comments

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

jokorivai avatar Jun 07 '18 13:06 jokorivai

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

abhijithvijayan avatar Jul 02 '18 08:07 abhijithvijayan

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

jokorivai avatar Jul 12 '18 06:07 jokorivai

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

paladini avatar Nov 27 '18 19:11 paladini

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

#14

abhijithvijayan avatar Nov 30 '18 23:11 abhijithvijayan