fix missing config var

This commit is contained in:
tdreyno 2010-10-16 01:02:12 -04:00
parent 5a161a21a0
commit 1dfd665301

View file

@ -5,7 +5,8 @@ module Middleman::Features::Slickmap
def registered(app) def registered(app)
require 'slickmap' require 'slickmap'
@sitemap_url = config[:url] || "sitemap.html" @sitemap_url = "sitemap.html"
@sitemap_url = Middleman::Server.sitemap_url if (Middleman::Server.respond_to? :sitemap_url)
if Middleman::Server.environment == :build if Middleman::Server.environment == :build
Middleman::Builder.template :slickmap, @sitemap_url, @sitemap_url Middleman::Builder.template :slickmap, @sitemap_url, @sitemap_url