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

Links pointing to localhost #49

Closed
schneidr opened this issue Jan 22, 2018 · 3 comments
Closed

Links pointing to localhost #49

schneidr opened this issue Jan 22, 2018 · 3 comments

Comments

@schneidr
Copy link

Some links are pointing to localhost:4000 even though I've set the actual address of the Apache server in baseurl and url in _config.yml.

Examples:

  • RSS feed
  • search
  • tags
  • portfolio

I have not modified the links in navbar.html:

<a class="clear" href="{{ site.url }}{{ site.baseurl }}/search">
@sylhare
Copy link
Owner

sylhare commented Jan 22, 2018

Do you know which links are pointing there? I will take a look into navbar.html and around in the code. Might be a mistake.

@sylhare
Copy link
Owner

sylhare commented Jan 23, 2018

Hi, so I have checked on my side and I don't think the theme have any misplaced links (like localhost would be hard coded in them) or I didn't find them.

So my guess is that the problem comes from the way the jekyll website is launched on your server. If you are running it locally on your server then it might always be referring to the localhost.
(For example if I run master locally it will run under "localhost" eventhough _config.yml says sylhare.github.io as baseurl.

@schneidr
Copy link
Author

Sorry, my fault. After reading the documentation again I learned that I have to set the environment variable JEKYLL_ENV=production to tell jekyll to use the value defined in _config.yml instead of the default localhost:4000.

OMEGA-Y pushed a commit to OMEGA-Y/OMEGA-Y.github.io that referenced this issue Dec 8, 2020
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

2 participants