Sha256: 4d9dd8d921da29dafcce30109ae70bdf055d68a2274febf1052a1675457027d6

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

---
---
[
  {% if site.theme_settings.search %}
  {% for post in site.posts %}
    {
      "title"    : "{{ post.title | escape }}",
      "category" : "{{ post.content | strip_html | strip_newlines | truncatewords: 25 }}",
      "tags"     : "{{ post.tags | join: ', ' | prepend: " " }}",
      "url"      : "{{ site.baseurl }}{{ post.url }}",
      "date"     : "{{ post.date | date: "%B %-d, %Y" }}",
      "content"  : "{{ post.content | strip_html | strip_newlines }}"
    } {% unless forloop.last %},{% endunless %}
  {% endfor %},
  {% for page in site.portfolio %}
   {
     {% if page.title != nil %}
        "title"    : "{{ page.title | escape }}",
        "category" : "{{ page.content | strip_html | strip_newlines | truncatewords: 25 }}",
        "tags"     : "{{ page.tags | join: ', ' | prepend: " " }}",
        "url"      : "{{ site.baseurl }}{{ page.url }}",
        "date"     : "{{ page.date | date: "%B %-d, %Y" }}",
        "content"  : "{{ page.content | strip_html | strip_newlines }}"
     {% endif %}
   } {% unless forloop.last %},{% endunless %}
  {% endfor %}
  {% endif %}
]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
type-on-strap-0.1.1 pages/search.json