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

Minor fixes for browsing off via file URLs (RELATIVE_URLS=True). #106

Closed
wants to merge 1 commit into from

Conversation

rmorehead
Copy link

When using pelican-elegant with RELATIVE_URLS=True there are a few minor issues this corrects:

  1. The bootstrap CSS won't load due to lacking http: at the start of the URL.
  2. Home and site link take you to the directory, which just gives you a list of files if running directory off the filesystem.

@calfzhou
Copy link
Contributor

I use RELATIVE_URLS=True, but didn't meet the given problem.

Your problem might be caused by that you directly open index.html in your browser. The correct way is to run python -m SimpleHTTPServer <port> in your output directory, and then visit your site from http://localhost:<port>/

@rmorehead
Copy link
Author

I know it can be accessed via the stand alone web server, but with this minor change it works well for me running directly off the filesystem which is more efficient.

@rmorehead rmorehead closed this Jan 16, 2014
@rmorehead rmorehead reopened this Jan 16, 2014
@calfzhou
Copy link
Contributor

Add http: to bootstrap cdn might lead some problem if someone deploy his site using https.

@talha131
Copy link
Member

I am closing this pull requests for all the reasons mentioned by @calfzhou.

Thank you @rmorehead and @calfzhou for your contribution.

@talha131 talha131 closed this Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants