Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Help implementing search function

Started by Shane 6 years ago · 0 replies · 646 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago