Use a Jekyll plugin instead of the copy:configBridge grunt task

This commit is contained in:
Heinrich Fenkart 2014-11-05 18:35:13 +01:00
parent e27dc5d71e
commit 30df201abc
3 changed files with 10 additions and 6 deletions

9
docs/_plugins/bridge.rb Normal file
View file

@ -0,0 +1,9 @@
require 'yaml'
module Bridge
class Generator < Jekyll::Generator
def generate(site)
site.data["configBridge"] = YAML.load_file("./grunt/configBridge.json")
end
end
end