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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Help implementing search function

Started by Shane 6 years ago · 0 replies · 338 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 Thomas, 1 week ago
2 57 15 hours ago
Support · by Anna, 3 days ago
2 65 18 hours ago
Support · by Justin Young, 19 hours ago
1 33 18 hours ago
Support · by Duc , 1 week ago
2 68 5 days ago
Support · by Colin Hume, 1 week ago
2 60 6 days ago