Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Makary Regular
@MakaryGo · Joined 9 years ago · 148 posts · 3 topics · 28 reputation
Badges
Recent posts
-
Subdirectory pages in a modular site
· 9 years ago
So, to be clear. You have it structured like this? 01.home (main page) _portfolio (main page module) projectName (non-modular sub-page of _portfolio) Would this be correct?
-
Subdirectory pages in a modular site
· 9 years ago
So you have both *.md definition and *.html webpage in the same folder?
-
Subdirectory pages in a modular site
· 9 years ago
/portfolio/projectName should work
-
Show a menu if a condition is true
· 9 years ago
I'm glad it worked! Enjoy your adventure with Grav!
-
Show a menu if a condition is true
· 9 years ago
{% if not page.home() and page.children.count() > 0 %} should do the trick.
-
Show a menu if a condition is true
· 9 years ago
So, you wish to display it on each and every module? If so, perhaps just add this code to all the module templates... Or do you wish to show it if page contains modules? If this is the case, use {% if
-
Show a menu if a condition is true
· 9 years ago
Hi there! If you wish to display main menu as in menu containing all the top level pages the code that should work will be {% for page in pages.children %} //Display a link: <a href="{{ page.url }
-
Add frontmatter config into twig print function
· 9 years ago
Drop the {{ }} around item.image :)
-
Website is very slow in spite of grav core feature (crazy fast..)
· 9 years ago
If you want to make sure that loading time is not afected by server-side page generation, install Blackhole module, @tancredi it will generate all sites as plain HTML. Also, you can download all the
-
Access Grav functions outside directory
· 9 years ago
Always happy to help 😊