Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Use Grav for many users
· 10 years ago
The more I use Grav the more I want to use it for all of my website projects. I manage a Wordpress "magazine type" website with about 10.000 users and willing to switch it to Grav. Also will need a P
-
Move lightslider to top of page
· 10 years ago
Is there an easy way to replace the showcase in antimatter with a standard lightslider and snap it to the top of the page similar to the showcase template in the antimatter theme?
-
Group results of nested loop
· 10 years ago
Thanks so much! I ended up with a solution by doing this: {% set item_count = 0 %} {% for group in page.children %} {% for item in group.children.order('title', 'desc') %} {% set item_count
-
Group results of nested loop
· 10 years ago
The Twig docs for it are here: http://twig.sensiolabs.org/doc/tags/for.html#the-loop-variable
-
Group results of nested loop
· 10 years ago
Thanks so much! I'm not finding any Twig docs on how to do this. Does anyone have further info?
-
Group results of nested loop
· 10 years ago
You are going to need to assign the loop.index to another local variable inside the first for loop.
-
Group results of nested loop
· 10 years ago
I have a nested loop like this: {% for group in page.children %} {% for item in group.children.order('title', 'desc') %} {{ loop.index }} {% endfor %} {% endfor %} I am wanting to group a
-
How to specifically address blog.md frontmatter?
· 10 years ago
solved! thank you so much. i'm slowly getting the hang of it. did i already say how happy i am that i can hack away at files instead of using some clunky admin interface / database combination?
-
How to specifically address blog.md frontmatter?
· 10 years ago
Ok, well site_header_image is just a string, you would still need to get the media: <header id="header" style="background-image: url({{ page.find('/blog').media[site_header_image].url }});">
-
How to specifically address blog.md frontmatter?
· 10 years ago
i now set it like this: {% set site_header_image = page.find('/blog').header.banner_img %} {% if site_header_image %} <header id="header" style="background-image: url({{ site_header_image }});">