-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsearch.json
33 lines (33 loc) · 1.12 KB
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
---
[
{% for post in site.posts %}
{
{% if post.serie %}
"title" : "{{ post.serie | escape }}: {{ post.title | escape }}",
{% else%}
"title" : "{{ post.title | escape }}",
{% endif %}
"url" : "{{ post.url }}",
"tags" : [
{% for tag in post.tags %}
"{{tag}}" {% if forloop.last %}{% else %},{% endif %}
{% endfor%}
],
"date" : "{{ post.date | date: "%d/%m/%Y" }}",
"author": "{{ post.author }}",
"author_login": "{{ post.author_login }}",
{% if post.serie %}
{% for s in site.data.series %}
{% if post.serie == s.name %}
"thumb" : "{{ s.thumb }}"
{% endif %}
{% endfor %}
{% elsif post.thumbnail %}
"thumb" : "{{ post.thumbnail }}"
{% else %}
"thumb" : "http://placehold.it/200x200"
{% endif %}
} {% if forloop.last %}{% else %},{% endif %}
{% endfor %}
]