LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 08-22-2017, 01:15 PM   #1
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Rep: Reputation: 36
Jekyll generated site urls do not work while served


Hi.

I don't know where else to post it, so I'm just gonna put this here. My problem is, that when I create a website using Jekyll, everything works fine while serving it locally with 'jekyll serve'. But as soon as I upload the site to a host, only the index.html seems to work, but the links do not. No special subdomains or any other url related setting is used, everything seems to be using default settings.

Some additional info: when I check the served site in FF's web console , I get this:

ReferenceError: jQuery is not defined js/vendor/jquery.jpanelmenu.min.js:7:2
ReferenceError: $ is not defined js/main.js:103:1

Also, loading of two .js files fails. When I browse the site to manually access these two .js files, I get a 403 page saying that access to these specific .js files is forbidden. All other js files can be accessed. Interestingly, none of this happens on the locally served site. I also checked for possible file naming problems, but that does not seem to be the case.

Also, the site uses "pretty"-ish links to different content, meaning there is no trailing .html in the links.

Could someone please give me a couple of suggestions what to check?

Thanks very much.

Last edited by pusrob; 08-22-2017 at 01:34 PM.
 
Old 08-22-2017, 01:55 PM   #2
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Original Poster
Rep: Reputation: 36
A solution for the link problems: just use a config in your _config.yml file that gives a proper .html ending to every link. My _config.yml now contains this: permalink: /:categories/:title.html
Now all posts load as they should.
Now I need to fix the .js errors only...
 
Old 08-26-2017, 05:20 AM   #3
pusrob
Member
 
Registered: Jan 2006
Distribution: Gentoo
Posts: 505

Original Poster
Rep: Reputation: 36
A solution for the .js files not loading:
Set all file and directory permissions to 644 and 755, respectively. That will do the trick.
 
  


Reply

Tags
jekyll, serve, url


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Getting started with Jekyll, a free and open source static site generator LXer Syndicated Linux News 0 04-12-2017 03:28 PM
128 bits key generated when 1024 was generated(centos 6.5)using openssl SarahGurung Linux - Security 3 07-29-2014 07:03 AM
LXer: Good by Drupal, hello Jekyll LXer Syndicated Linux News 0 08-15-2011 10:01 PM
how to check urls and stop internet urls in network gface Linux - Networking 5 03-24-2005 09:48 PM
Which program would work best to automatically fetch specified URLs Red Alastor Linux - Software 2 06-23-2004 11:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration