The period is on the end of everywhere, but the variable from _index.md doesn’t seems to be able to go through from section.html (where if I do {{ .Params.Editor }} , Rick Hunter the brave Valkyrie pilot shows up), but it doesn’t reaches the "article.html" page that gets called from within "section.html", even though the damn dot is there!
It’s easier to help you debug this if you could just share a git repo with minimal example.
Right now, one needs to copy/paste your snippets and create the minimal example themselves. After all the effort, if someone is not able to reproduce the issue, they will ask you to post a repo then.
More likely than not, the issue is usually something else, that the OP did not put in their snippets.
It saves a lot of time for the person needing help as well as the helpers if a git repo is shared to begin with.
I did not copy/paste your snippets. But I simply added “Editor” front-matter to a test page, and I can access it via .Param "Editor" and .Param "editor".
My html output comes from a partial that’s nested. On the root level of the partials folder, I can access the variable, but if I go one level deep, then I can’t.
Three ways of solving this, out of the top of my mind:
1) I will drop the folder “template-styles” and simply name my partials as “TEMPLATE-name” for simplicity sake (although I kinda liked to have everything neatly organized in folders) 2) I can create a dict for each one of those variables I need from _index.md (at the moment, something in the vicinity of 14)
3) Cry on my pillow for the rest of the day.
Since I’m not going to be creating a lot of templates for this one, I will do the first option (though I was already half way there with the second one…)
Just tried it, doesn’t works outside partials either (thought I’d seen it work). I’m going with option 2.