Sha256: 14ff6778a31da546eaaabec5689760b352847ec237a6b77d3571550a118f2c6f
Contents?: true
Size: 528 Bytes
Versions: 27
Compression:
Stored size: 528 Bytes
Contents
<%- page = search_result title = page.title summary = 'error' begin summary = truncate(page.search_index, :length => 300) summary = excerpt(page.search_index, @terms.first, 150) || truncate(page.search_index, :length => 300) rescue Exception => e logger.error "Error creating search index excerpt: #{e}" end @terms.each do |term| title = highlight(title, term) summary = highlight(summary, term) end -%> <p> <a href="/<%= page.path %>"><%= title %></a><br/> <%= summary %> </p>
Version data entries
27 entries across 27 versions & 1 rubygems