Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigation Links Always Point To Localhost #10

Open
jokorivai opened this issue Jun 7, 2018 · 4 comments
Open

Navigation Links Always Point To Localhost #10

jokorivai opened this issue Jun 7, 2018 · 4 comments

Comments

@jokorivai
Copy link

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
Copy link
Contributor

abhijithvijayan commented Jul 2, 2018

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
Copy link
Author

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

@paladini
Copy link
Owner

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

@abhijithvijayan
Copy link
Contributor

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

#14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants