Pedro M Regular
@pmoreno · Joined 6 years ago · 412 posts · 108 topics · 102 reputation
Badges
Recent posts
-
Pass modular template variables to modules
· 3 years ago
Any suggestions? I have these common variables used in several modules templates: {% set blog = page.find(header_var('blog_url')|defined(theme_var('blog_page'))) %} {% set override_style = theme_var('
-
How to render a custom template in pre-existing theme
· 3 years ago
@import '../../../future2021/assets/sass/main.scss'; Thanks @pamtbaau for your correction in main.scss of the future2021 child theme. I'll fix it in the GitHub repo. If you want to go fast, go slow…
-
How to render a custom template in pre-existing theme
· 3 years ago
Hi @piccolopi Inheritance in the Future2021 theme works the same as in any other Grav theme and is well explained in the Grav documentation. The Future2021 theme does have a SCSS file structure from
-
Pass modular template variables to modules
· 3 years ago
Maybe I haven't read it in the Grav documentation or seen any code examples in any templates, but the question is: how can variables be passed from a modular page to its modules? It doesn't seem like
-
How to render a custom template in pre-existing theme
· 3 years ago
Hi @piccolopi . Have you tried to clear cache?. Sometimes the changes in your code have not effect until you clear the Grav cache.
-
Item template inherits variable from blog template, even if it is defined to false
· 3 years ago
Hi. In blog template and item template I have the sidebar variable in this way (same as the Quark theme): {% set show_sidebar = header_var('show_sidebar', [page, blog])|defined(false) %} If I define
-
How to make the title of the dropdown category clickable
· 3 years ago
I just updated the theme repository. I've included some visual improvements to the mobile menu. I will release the next version shortly. Thank you very much @hughbris and @pamtbaau for your suggestion
-
How to make the title of the dropdown category clickable
· 3 years ago
The original Future theme, from HTML5Up, is not a theme with a multi-level navigation bar, so when I started creating the Future2021 theme for Grav, I wanted to add this option, since Grav offers that
-
How to make the title of the dropdown category clickable
· 3 years ago
Hi @piccolopi After reading your post, I still don't understand some things. First, why do you want the title of a parent menu item, which contains children, to be clickable? The theme menu is built
-
Display all categories in a Blog page filtered
· 3 years ago
Finally, I've found a possible solution with some minors changes in the my code: {# Set Categories #} {% set terms = [] %} {% for item in blog.children %} {% for term in i