lib/octopress-ink/assets/stylesheet.rb in octopress-ink-1.0.0.rc.28 vs lib/octopress-ink/assets/stylesheet.rb in octopress-ink-1.0.0.rc.29

- old
+ new

@@ -25,21 +25,25 @@ def disabled? is_disabled('css', filename) || is_disabled('stylesheets', filename) end def tag - "<link href='#{Filters.expand_url(File.join(dir, file))}' media='#{media}' rel='stylesheet' type='text/css'>" + "<link href='#{Filters.expand_url(File.join(dir, output_file_name))}' media='#{media}' rel='stylesheet' type='text/css'>" end def add Plugins.add_css_tag tag super end private def destination - File.join(base, plugin.slug, file.sub(/@(.+?)\./,'.')) + File.join(base, plugin.slug, output_file_name) + end + + def output_file_name + file.sub(/@/,'-') end end end end end