Permalink
Browse files

Set baseurl to nothing in new template site.

Previously, it caused all sorts of errors.
Fixes #2317.
  • Loading branch information...
1 parent b5dc628 commit 2dec333910b06f8c3ca3916a0dea833a14463000 @parkr parkr committed May 7, 2014
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/site_template/_config.yml
@@ -3,7 +3,8 @@ name: Dat site title tho
title: Your awesome title
email: your-email@domain.com
description: "Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description."
-baseurl: "http://yourdomain.com"
+baseurl: ""
+url: "http://yourdomain.com"
# Build settings
markdown: kramdown

8 comments on commit 2dec333

Member

albertogg replied May 7, 2014

@parkr what about all the variables {{ site.baseurl }} variables used in the feed.xml, _includes/head.html _incluedes/header? do you suggest changing them?

Owner

parkr replied May 7, 2014

I would prefer not to use them in a perfect world, but this works.

Member

albertogg replied May 7, 2014

But they are being used in all those files I stated.

Owner

parkr replied May 7, 2014

You mean links here?

screen shot 2014-05-07 at 12 04 27 am

The header is fine:

screen shot 2014-05-07 at 12 04 51 am

Member

albertogg replied May 7, 2014

Yes, I know it will be fine, but I don't know if ben was using them for something else.

Member

troyswanson replied May 7, 2014

Those ought to be absolute URLs, no?

Owner

parkr replied May 7, 2014

Yeah.

Member

albertogg replied May 7, 2014

LOL, I'm confused

Please sign in to comment.