You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Jekyll website that heavily uses nested loops over complicated page variables as a way to generate a page. I was surprised to see that does not work in Franklin. What is the idiomatic way to do the following (pseudocode):
# file homepage.md
{{for group in myvariable_d}}
{{for i in group["a"]}}
## {{fill i}}
{{end}}
{{end}}
{{for group in myvariable_v}}
{{for i in group}}
## {{fill i}}
{{end}}
{{end}}
The text was updated successfully, but these errors were encountered:
As soon as you have complexity like this you should move the logic to a hfun and just write Julia code for it (or if you want to keep things in the same page and not move it to utils.jl, use a hidden executed code block; or lastly you can create an unnested iterator at the definition level)
The next version will allow for a bit more flexibility in these things but the purpose is just to be more consistent, not to allow gradually more complex logic in a kind of specialised DSL like in Hugo.
I have a Jekyll website that heavily uses nested loops over complicated page variables as a way to generate a page. I was surprised to see that does not work in Franklin. What is the idiomatic way to do the following (pseudocode):
The text was updated successfully, but these errors were encountered: