Viewing File: /usr/local/cpanel/3rdparty/share/promise/3.5.5/docs/_plugins/mdate.rb

module Jekyll
  module MyFilters
    def file_date(input)
      File.mtime(input)
    end

    def check_active(page_path, link_type)
        if (link_type == "support" and page_path =~ /support/) or
            (link_type == "install" and page_path =~ /install/) or
            (link_type == "docs")
            "active"
        else
            ""
        end
    end
  end
end

Liquid::Template.register_filter(Jekyll::MyFilters)
Back to Directory File Manager