Sha256: a887ae41f6ac91b6e98472147a764acf03f1fdb6ccf3ef4e3747e0cd00c9017a
Contents?: true
Size: 573 Bytes
Versions: 17
Compression:
Stored size: 573 Bytes
Contents
begin require 'jekyll/static_file' module CloudgovStyle class Assets SOURCE = File.realpath File.join(__FILE__, '..', '..', '..') BEGIN_PATH = SOURCE.size + File::SEPARATOR.size def self.copy_to_site(site) Dir.glob File.join(SOURCE, 'assets', '[^_]*', '**', '*') do |asset| next unless File.file? asset asset = asset[BEGIN_PATH..-1] site.static_files << ::Jekyll::StaticFile.new( site, SOURCE, File.dirname(asset), File.basename(asset)) end end end end rescue LoadError end
Version data entries
17 entries across 17 versions & 1 rubygems