--- layout: null permalink: /search.json --- {%- assign entries = '' | split:'@' %} {%- for item in site.pages %} {%- assign nav_search = item.nav-search | isnil: true %} {% if nav_search and item.title %} {%- capture data -%} { "title" : "{{ item.title | escape }}", "category" : "{{ item.category }}", "tags" : "{{ item.tags | join: ' ' }} {{item.keywords}}", "url" : "{{ site.baseurl }}{{ item.url }}", "date" : "{{ item.date }}" } {%- endcapture %} {%- assign entries = entries | push: data %} {% endif %} {%- endfor %} {%- for item in site.posts %} {%- assign nav_search = item.nav-search | isnil: true %} {% if nav_search and item.title %} {%- capture data -%} { "title" : "{{ item.title | escape }}", "category" : "{{ item.category }}", "tags" : "{{ item.tags | join: ' ' }} {{item.keywords}}", "url" : "{{ site.baseurl }}{{ item.url }}", "date" : "{{ item.date }}" } {%- endcapture %} {%- assign entries = entries | push: data %} {% endif %} {%- endfor %} {%- for item in site.authors %} {%- assign nav_search = item.nav-search | isnil: true %} {%- if nav_search and item.title %} {%- capture data -%} { "title" : "{{ item.name | escape }}", "category" : "{{ item.category }}", "tags" : "{{ item.tags | join: ' ' }} {{item.keywords}}", "url" : "{{ site.baseurl }}{{ item.url }}", "date" : "{{ item.date }}" } {%- endcapture %} {%- assign entries = entries | push: data %} {%- endif %} {%- endfor %} [ {%- for entry in entries -%} {{ entry }} {%- unless forloop.last %},{%- endunless -%} {%- endfor -%} ]