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

Split modular page with separate markdown files

Started by Muut Archive 10 years ago · 3 replies · 418 views
10 years ago

Test Website

I have a HTML created tab structure. I would like to split the different tab sections into separate markdown files for an easy edit of the text content instead of using YAML. What do you think would be the best way to go about it?
I would do it like :

TWIG
  <div class="ct ct-flatbox" data-tabs="
            isAutoRun-on
            fxOne-wheelVer speed-600 pag-{ dirs: ver, pos: top, align: begin, sizeAuto: full, wMinToHor: 468 } ">

 {% for section in sections["page"]["health_addons.markdown"] %}
            {{ section }}
            {% endfor %}

</div>

is there a better way to go about it?

10 years ago

Thank you works brilliantly. In the admin ui is it possible to colour code [section][/section] so its more obvious to the lesser technical that there is a content block?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1361 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago