Commit | Line | Data |
---|---|---|
ac49e024 AE |
1 | --- |
2 | title: search | |
3 | layout: none | |
4 | search: exclude | |
5 | --- | |
6 | ||
7 | [ | |
8 | {% for page in site.pages %} | |
9 | {% unless page.search == "exclude" %} | |
10 | { | |
11 | "title": "{{ page.title | escape }}", | |
12 | "tags": "{{ page.tags }}", | |
13 | "keywords": "{{page.keywords}}", | |
14 | "url": "{{ page.url | remove: "/"}}", | |
15 | "summary": "{{page.summary | strip }}" | |
16 | } | |
17 | {% unless forloop.last and site.posts.size < 1 %},{% endunless %} | |
18 | {% endunless %} | |
19 | {% endfor %} | |
20 | ||
21 | {% for post in site.posts %} | |
22 | ||
23 | { | |
24 | "title": "{{ post.title | escape }}", | |
25 | "tags": "{{ post.tags }}", | |
26 | "keywords": "{{post.keywords}}", | |
27 | "url": "{{ post.url }}", | |
28 | "summary": "{{post.summary | strip }}" | |
29 | } | |
30 | {% unless forloop.last %},{% endunless %} | |
31 | {% endfor %} | |
32 | ||
33 | ] |