fix missing config var
This commit is contained in:
parent
5a161a21a0
commit
1dfd665301
1 changed files with 3 additions and 2 deletions
|
@ -5,8 +5,9 @@ module Middleman::Features::Slickmap
|
|||
def registered(app)
|
||||
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
|
||||
Middleman::Builder.template :slickmap, @sitemap_url, @sitemap_url
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue