Sha256: ac13f64846987691ec7e49b84dd7ef4793f7a96633c1bdbd8dee6aacba997103
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
Contents
# These are files which need to be in added to the root of the site directory # Use root assets for files like robots.text or favicon.ico module Octopress module Ink module Assets class PageAsset < Asset def initialize(plugin, type, file) @root = plugin.assets_path @plugin = plugin @type = type @dir = File.dirname(file) @file = File.basename(file) @exists = {} file_check end def page_dir @dir == '.' ? '' : @dir end def plugin_path File.join(plugin_dir, @dir, @file) end def page @page ||= Page.new(Plugins.site, plugin_dir, page_dir, @file, @plugin.config) end # Add page to Jekyll pages if no other page has a conflicting destination # def copy return unless page.url Plugins.site.pages << page unless Helpers::Path.find_page(page) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-ink-1.0.0.alpha.33 | lib/octopress-ink/assets/page.rb |
octopress-ink-1.0.0.alpha.32 | lib/octopress-ink/assets/page.rb |