Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

Help implementing search function

Started by Shane 6 years ago · 0 replies · 406 views
6 years ago

I'm using Grav for a website that it works very well. Except I have not been successful in using the search function at all. Oddly, I'm using Grav to access data stored in a yaml file in the data folder. So ALL my pages look like this:

TWIG
{% for item in page.header.imports %}
  {% if item.Chapter == 5 %}
  Heb {{ item.Chapter }}:{{ item.Verse }}  {{ item.Context }}</br>
  {% endif %}
 {% endfor %}

After it pulls the data from the yaml file, it is actually an entire chapter from the Bible. This makes it very fast to roll out the site, but the bad side affect is NO SEARCH capabilities. If you know how to make search, or even caching work after the page is rendered, that would be wonderful. I would appreciate any pointers.

You can view the page at: www.biblia.reinavaleragomez.com

Suggested topics

Topic Participants Replies Views Activity
Support · by Paul Hodges, 4 weeks ago
19 485 5 days ago
Support · by Lauw, 7 days ago
2 101 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 3 weeks ago