Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
Yaml syntax and "complex" content
· 11 years ago
Thanks Ryan. It is probably the best options regarding my needs. Actually, I should have named my topic "Is it possible to store html content in yaml var". But from search on Internet and from your an
-
Yaml syntax and "complex" content
· 11 years ago
I'm doing something similiar, but I use modules (subpages), instead of a deep nested yaml file. This way files look like -- icon: headphones title: Service Title 4 -- Fusce dapibus, tellus ac cursus
-
Yaml syntax and "complex" content
· 11 years ago
thanks for reply.
-
Yaml syntax and "complex" content
· 11 years ago
You can use {% if page.header.services.item1 %} (and so on) to determine if you have content to render. See the twig docs for additional flow control statements.
-
Yaml syntax and "complex" content
· 11 years ago
Any complement or adapted solution for my needs ?
-
Yaml syntax and "complex" content
· 11 years ago
Thanks for your reply. The proposed solution is ok, if all services items have list but this is not my case. One desc item will have 2 paragraphs and no list, another 1 paragraph + 1 list, and so one
-
Yaml syntax and "complex" content
· 11 years ago
So it sound like you want to output desc split with a list in the middle? The best way I know to do that is to create two separate fields like this: desc1: Fusce dapibus, tellus ac cursus commodo, tor
-
Yaml syntax and "complex" content
· 11 years ago
Actually, I don't really want markdown syntax. I would be happy to be able to write html into yaml file. What would be your advice ? to write HTML in yaml files, (if possible, of course ?) or just re
-
Yaml syntax and "complex" content
· 11 years ago
I'm not really following how the header yaml is supposed to relate to the wanted markdown syntax?
-
Yaml syntax and "complex" content
· 11 years ago
Hi list, I 'm new to Grav and use skeleton-deliver-theme as based theme and I'd like to get sophisticated text in place of raw text using yaml syntax. Here is the kind of raw text (lorem ips) inside t