zeus.ugent.be/content/blog_search.json

15 lines
336 B
JSON
Raw Normal View History

2016-10-04 14:25:03 +00: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 %>
]}