Sha256: 90b816644bd54cc6a6d8e7d29b473c64e1c5ff424442fa4bc444d04b764b1640

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

---
layout: null
---
{% 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

1 entries across 1 versions & 1 rubygems

Version Path
fenton-jekyll-boilerplate-0.0.2 search.json