Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Help implementing search function

Started by Shane 6 years ago · 0 replies · 448 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 complanar, 6 days ago
6 140 17 hours ago
Support · by Rick Beebe, 6 days ago
2 100 2 days ago
Support · by blu3prince, 3 days ago
0 52 3 days ago
Support · by alex, 4 days ago
2 92 3 days ago
Support · by Marcel, 2 weeks ago
1 143 4 days ago