Sha256: f5485c26f82118450de56be58de290033d204b9d9ab8a4acd7d615365284e2a6

Contents?: true

Size: 1.33 KB

Versions: 5

Compression:

Stored size: 1.33 KB

Contents

---
layout: null
permalink: /search.json
---
{%- assign pages = site.pages | where: 'nav-search', 'true' %}
{%- assign posts = site.posts | where: 'nav-search', 'true' %}
{%- assign authors = site.authors | where: 'nav-search', 'true' %}
[
  {% for page in pages %}{
    "title"    : "{{ page.title | escape }}",
    "category" : "{{ page.category }}",
    "tags"     : "{{ page.tags | join: ' ' }} {{page.keywords}}",
    "url"      : "{{ site.baseurl }}{{ page.url }}",
    "date"     : "{{ page.date }}"
  }{%- unless forloop.last %},{% endunless %}
  {%- endfor %}
  {%- if authors.size > 0 %},{% endif %}
  {%- for author in authors %}{
    "title"    : "{{ author.name | escape }}",
    "category" : "{{ author.category }}",
    "tags"     : "{{ page.tags | join: ' ' }} {{page.keywords}}",
    "url"      : "{{ site.baseurl }}{{ author.url }}",
    "date"     : "{{ author.date }}"
  }{%- unless forloop.last %},{% endunless %}
  {%- endfor %}
  {%- if posts.size > 0 %},{% endif %}
  {%- for post in posts %}{
    "title"    : "{{ post.title | escape }}",
    "category" : "{{ post.category }}",
    "tags"     : "{{ page.tags | join: ' ' }} {{page.keywords}}",
    "url"      : "{{ site.baseurl }}{{ post.url }}",
    "date"     : "{{ post.date }}"
  }
  {%- unless forloop.last %},{% endunless %}
  {%- endfor %}
]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fenton-jekyll-boilerplate-0.0.11 assets/search/search.json
fenton-jekyll-boilerplate-0.0.10 assets/search/search.json
fenton-jekyll-boilerplate-0.0.9 assets/search/search.json
fenton-jekyll-boilerplate-0.0.8 assets/search/search.json
fenton-jekyll-boilerplate-0.0.7 assets/search/search.json