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.

Themes & Styling

Gateway Theme 'Featured' Location

theme

Started by David Garner 5 years ago · 0 replies · 449 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 Pedro M, 2 months ago
4 202 2 months ago
Themes & Styling · by Ian, 2 months ago
3 98 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 461 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 52 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 132 3 months ago