class Jekyll::DefaultFullSearch
For each search result, this will render the contents of “_includes/search-full-default-result-template.html” from this plugin.
Public Class Methods
new(tag_name, argument, tokens)
click to toggle source
Calls superclass method
# File lib/jekyll/FDroidSearchAutocompleteTag.rb, line 79 def initialize(tag_name, argument, tokens) super @empty_search_id = argument.strip end
Public Instance Methods
render(context)
click to toggle source
# File lib/jekyll/FDroidSearchAutocompleteTag.rb, line 84 def render(context) search_form_template_path = "../../_layouts/search-full.html" result_item_template_path = "../../_includes/search-full-default-result-template.html" result_item_template = IO.read((File.expand_path(result_item_template_path, File.dirname(__FILE__)))) context['empty_search_id'] = @empty_search_id SearchForm.render_form(context, search_form_template_path, result_item_template) end