zeus.ugent.be/content/blog_search.json

15 lines
336 B
JSON
Raw Normal View History

2016-10-04 16:25:03 +02:00
{ "pages": [
<% articles.each_with_index do |e, i| %>
{
"title": "<%= e[:title] %>",
"url": "<%= url_for(e) %>",
"text": "<%= excerptize(e.reps[:text].compiled_content, length: 200).gsub(/\n/, ' ') %>",
"tags": ""
<% if i < articles.size - 1 %>
},
<% else %>
}
<% end %>
<% end %>
]}