Class: Jekyll::Tags::IncludeRelativeTag
- Inherits:
-
IncludeTag
- Object
- Liquid::Tag
- IncludeTag
- Jekyll::Tags::IncludeRelativeTag
- Defined in:
- lib/jekyll/tags/include.rb
Constant Summary
Constants inherited from IncludeTag
Jekyll::Tags::IncludeTag::VALID_SYNTAX, Jekyll::Tags::IncludeTag::VARIABLE_SYNTAX
Instance Attribute Summary
Attributes inherited from IncludeTag
Instance Method Summary collapse
Methods inherited from IncludeTag
#file_read_opts, #initialize, #parse_params, #path_relative_to_source, #realpath_prefixed_with?, #render, #render_variable, #source, #syntax_example, #validate_file_name, #validate_params, #validate_path
Constructor Details
This class inherits a constructor from Jekyll::Tags::IncludeTag
Instance Method Details
#page_path(context) ⇒ Object
159 160 161 |
# File 'lib/jekyll/tags/include.rb', line 159 def page_path(context) context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"]) end |
#resolved_includes_dir(context) ⇒ Object
163 164 165 |
# File 'lib/jekyll/tags/include.rb', line 163 def resolved_includes_dir(context) context.registers[:site].in_source_dir(page_path(context)) end |
#tag_includes_dir ⇒ Object
155 156 157 |
# File 'lib/jekyll/tags/include.rb', line 155 def tag_includes_dir '.' end |