xeoncross / jr

Jr. the static, static javascript site generator (you should see this)
Other
759 stars 39 forks source link

title not rendered if there is no footer #19

Open bc-webmaster opened 10 years ago

bc-webmaster commented 10 years ago

The <title> for a page does not seem to get generated if there is no footer.html file in the directory.

xeoncross commented 10 years ago

What is the error you are seeing? Open up the developer console in firefox or Chrome and there should be missing requests or a Javascript error.

bc-webmaster commented 10 years ago

In Firebug in Firefox 30.0 there's the following error in the console:

NS_ERROR_DOM_BAD_URI: Access to restricted URI denied x.send(data); jr.js (line 203)

xeoncross commented 10 years ago

That sounds like you are trying to make an AJAX request across different domains which is forbidden without CORS or a proxy (for security reasons).

http://example.com and http://www.example.com are considered two different domains to AJAX.

bc-webmaster commented 10 years ago

All I'm doing is deleting footer.html, and that's what happens. Please feel free to verify.

xeoncross commented 10 years ago

Check again, I just pushed some more changes out to fix this bug.