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.

General

One-page theme problem

Started by rohan sharma 8 years ago · 3 replies · 519 views
8 years ago

In the one page theme where does the id=modular-features comes from (the 'why grav build better sites' part)? In the file structure it is feature.md which contains content that means it is rendered through feature.html.twig, but when i search the base.html.twig there is no

{% block feature%}{% endblock %} or {% block modular%}{% endblock %} anything of this sort.

the part of it comes from(in thebase.html.twig) what i understood is:

\<section id="start">
{% block body %}
\<section id="body-wrapper" class="section">
\<section class="container {{ grid_size }}">
{% block messages %}
{% include 'partials/messages.html.twig' ignore missing %}
{% endblock %}
{% block content %}{% endblock %}
\</section>
\</section>
{% endblock %}
\</section>

when i remove this part it takes out the entire body as expected, but then where does the features.html.twig comes in place????

last edited 06/17/18 by rohan sharma
8 years ago

okay, i figured out that base.html.twig extends modular.html.twig which has the page.collection() which gets the feature.html.twig to work. but now when I remove the entire content of feature.html.twig and save it , the page still works. I though if i remove the feature.html.twig it should stop rendering feature.md file but thats not happening . wtf?

8 years ago

Disable cache in your development environment.

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 74 7 hours ago
General · by pamtbaau, 12 hours ago
1 47 12 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 39 5 days ago