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

Gateway Theme 'Featured' Location

theme

Started by David Garner 5 years ago · 0 replies · 530 views
5 years ago

I am working with the Gateway theme and trying to understand the 'featured' images under the 'Featured Posts' section on the homepage. I see that it is a modular and seems to be populated from user/themes/gateway/templates/modular.html.twig in line 17:

TWIG
{% if featured %}
<div class="featured-posts">
    {% for row in featured|batch(3) %}
    <div class="row">
    {% for child in row %}
   .......

I want to add my own featured images but am unable to find the folder where I can edit these featured posts.

-I did see that the images are stored in the root folder nested in the images folder a few folders down, but that nested folder structure doesn't mean much to me.
-I also tried using the admin page to see if I was able to edit these posts through there, but haven't seen those images or any children of that modular type.

I am still fairly new to Grav so thanks in advance for any help! Cheers!

Edit: I did notice in Expert mode that where the Home page modular.md references

TXT
items: '@self.modular'

But I still can't find where those modular items might be stored so they can be edited and customized

last edited 09/09/21 by David Garner

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by stuart young, 2 weeks ago
3 251 2 weeks ago
Themes & Styling · by Sebadamus, 3 weeks ago
5 317 3 weeks ago
Themes & Styling · by martynfoster735, 4 weeks ago
1 310 4 weeks ago
Themes & Styling · by Justin Young, 1 month ago
1 348 1 month ago
Themes & Styling · by Slebeig, 2 months ago
4 474 2 months ago