lib/octopress-ink/assets/stylesheet.rb in octopress-ink-1.0.0.alpha.44 vs lib/octopress-ink/assets/stylesheet.rb in octopress-ink-1.0.0.alpha.45

- old
+ new

@@ -21,19 +21,25 @@ end m end def disabled? - plugin.disabled?('css', filename) || - plugin.disabled?('stylesheets', filename) + is_disabled('css', filename) || is_disabled('stylesheets', filename) end - def destination - File.join(base, plugin.slug, file.sub(/@(.+?)\./,'.')) - end - def tag "<link href='#{Filters.expand_url(File.join(dir, file))}' 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(/@(.+?)\./,'.')) end end end end end