-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.json
More file actions
executable file
·18 lines (16 loc) · 822 Bytes
/
search.json
File metadata and controls
executable file
·18 lines (16 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
---
{% assign divan_del_tamarit_pages=site.pages | where_exp: "item", "item.url contains '/divan-del-tamarit'" %}
{% assign filosofia_pages=site.pages | where_exp: "item", "item.url contains '/filosofia'" %}
{% assign dev_pages=site.pages | where_exp: "item", "item.url contains '/dev'" %}
{% assign content_pages = divan_del_tamarit_pages | concat: filosofia_pages | concat: dev_pages %}
[
{% for page in content_pages %}
{
"title" : "{% if page.title != "" %}{{ page.title | escape }}{% else %}{{ page.content | strip_html | truncatewords: 50 }}{%endif%}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"tags" : "{{ page.tags | join: ',' }}",
"summary" : "{{ page.content | strip_html | truncatewords: 50 }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]