Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\CSS\zh-CN\DefaultTheme\boilerplate\_plugins\ext.rb
# require "jekyll-assets" # 3rd-party require "liquid" module Wcweb class Random < Liquid::Tag def initialize(tag_name, max, tokens) super @max = max.to_s end def render(context) # if rand(@rand) == 0 # super # else # '' # end #rand(@rand).to_s "<script></script><!-- #{@max} width #{context.to_s} -->" end end end #Liquid::Template.register_tag('random', Random) %w{ asset asset_path image javascript stylesheet }.each do |tag| Liquid::Template.register_tag tag, Wcweb::Random end # module Jekyll # class CategoryIndex < Page # def initialize(site, base, dir, category) # @site = site # @base = base # @dir = dir # @name = 'index.html' # self.process(@name) # self.read_yaml(File.join(base, '_layouts'), 'category_index.html') # self.data['category'] = category # category_title_prefix = site.config['category_title_prefix'] || 'Category: ' # self.data['title'] = "#{category_title_prefix}#{category}" # end # end # class CategoryGenerator < Generator # safe true # def generate(site) # if site.layouts.key? 'category_index' # dir = site.config['category_dir'] || 'categories' # site.categories.keys.each do |category| # write_category_index(site, File.join(dir, category), category) # end # end # end # def write_category_index(site, dir, category) # index = CategoryIndex.new(site, site.source, dir, category) # index.render(site.layouts, site.site_payload) # index.write(site.dest) # site.pages << index # end # end # end
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de