zeus.ugent.be/content/tipuesearch_content.js
2016-08-04 20:57:25 +02:00

10 lines
271 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 %>
]};