diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 5edd33de..87583e95 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -26,10 +26,11 @@ module Jekyll @file, @params = markup.strip.split(' ', 2); end validate_params if @params + @tag_name = tag_name end def syntax_example - "{% include file.ext param='value' param2='value' %}" + "{% #{@tag_name} file.ext param='value' param2='value' %}" end def parse_params(context) @@ -156,10 +157,6 @@ eos page_path = context.registers[:page].nil? ? includes_dir : File.dirname(context.registers[:page]["path"]) Jekyll.sanitized_path(context.registers[:site].source, page_path) end - - def syntax_example - "{% include_relative file.ext param='value' param2='value' %}" - end end end end