searchcorpus.json 1.2 KB

1234567891011121314151617181920212223
  1. ---
  2. layout: null
  3. ---
  4. [
  5. {% for post in site.posts %}
  6. {
  7. "title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
  8. "desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
  9. "category" : "{{ post.tags | join: ', ' }}",
  10. "url" : "{{ site.baseurl }}{{ post.url | escape }}",
  11. "date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}"
  12. },
  13. {% endfor %}
  14. {% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %}
  15. {
  16. "title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
  17. "desc" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
  18. "category" : "{% if page.tags %}{{ page.tags | join: ', ' }}{% else %}page{% endif %}",
  19. "url" : "{{ site.baseurl }}{{ page.url }}",
  20. "date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}"
  21. }{% unless forloop.last %},{% endunless %}
  22. {% endif %}{% endfor %}
  23. ]