zeus.ugent.be/content/tipuesearch_content.js
2016-08-27 02:16:35 +02:00

10 lines
270 B
JavaScript

var tipuesearch = { "pages": [
<% articles.each do |e| %>
{
"title": "<%= e[:title] %>",
"url": "<%= url_for(e) %>",
"text": '<%= excerptize(e.reps[:text].compiled_content, length: 200).gsub(/\n/, ' ') %>',
"tags": ""
},
<% end %>
]}