thesowah / wangana

Wangana is a responsive Jekyll theme, perfect for powering your GitHub hosted blog.
MIT License
52 stars 42 forks source link

Updating the search to full page does not work #13

Closed kristiannordestgaard closed 6 years ago

kristiannordestgaard commented 9 years ago

Great theme, thanks a bunch. When I try to update the Simple-Jekyll-Search to full page, as per this, it stops working completely. I tried replacing all the relevant code, but no luck. Can you you help?

thesowah commented 9 years ago

But when you revert your changes, does it still function?

thesowah commented 9 years ago

Let me know if this works for you,

---
---
[
  {% for post in site.posts %}
    {
      "title"    : "{{ post.title | escape }}",
      "category" : "{{ post.category }}",
      "tags"     : "{{ post.tags | join: ', ' }}",
      "url"      : "{{ site.baseurl }}{{ post.url }}",
      "date"     : "{{ post.date }}"
    } {% unless forloop.last %},{% endunless %}
  {% endfor %}
  ,
  {% for page in site.pages %}
   {
     {% if page.title != nil %}
        "title"    : "{{ page.title | escape }}",
        "category" : "{{ page.category }}",
        "tags"     : "{{ page.tags | join: ', ' }}",
        "url"      : "{{ site.baseurl }}{{ page.url }}",
        "date"     : "{{ page.date }}"
     {% endif %}
   } {% unless forloop.last %},{% endunless %}
  {% endfor %}
]

If this works, then I can tell what you did wrong

kristiannordestgaard commented 9 years ago

Thanks for getting back to me. This does not work, though.

kristiannordestgaard commented 9 years ago

... I tried again with a freshly cloned theme, still no luck.

thesowah commented 9 years ago

I'm not sure why its behaving like that. When you find out, kindly let me know

kristiannordestgaard commented 9 years ago

I have no idea why it won't work, if I did I would let you know of course.