Permalink
Browse files

added baseurl to config

  • Loading branch information...
1 parent 4b28978 commit 4b473f5a7493926d79ecdac30f62b96c4ae669fc @jfromaniello committed Nov 22, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −2 _config.yml
  2. +1 −1 _plugins/generate_sitemap.rb
View
@@ -5,5 +5,4 @@ exclude: [ Gemfile, Gemfile.lock, Procfile, vendor]
permalink: pretty
pygments: true
archive_title_prefix: "Jose on Code! archive: \""
-tag_title_prefix: "Jose on Code! tag: \""
-baseurl: http://joseoncode.com
+tag_title_prefix: "Jose on Code! tag: \""
@@ -109,7 +109,7 @@ def generate_footer
# is output for this property.
def entry(path, date, changefreq, site)
# Remove the trailing slash from the baseurl if it is present, for consistency.
- baseurl = site.config['baseurl']
+ baseurl = site.config['baseurl'] || "http://joseoncode.com"
baseurl = baseurl[0..-2] if baseurl=~/\/$/
"

0 comments on commit 4b473f5

Please sign in to comment.