zeus.ugent.be/content/tipuesearch_content.js.erb

11 lines
271 B
Text
Raw Normal View History

2016-07-24 13:09:37 +02:00
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 %>
]};