Accessing nested MetaData read from YAML file #123
Unanswered
laurentkempe
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on porting my blog to 😍 Statiq from Hexo. I started to work on a Statiq theme which would port partially hexo-theme-tranquilpeak.
My theme defines a
themesettings.yml
, copy pasted from my hexo _config.yml which is correctly read thanks to Statiq ThemeManager.In my
.cshtml
file I can read nested properties which would output its valuefa fa-home
Now, I would like to get access to nested properties for another file
_config.yml
which is added usingI am struggling to get access to nested properties in
_config.yml
, e.g.would output a critical error
My config file is read correctly which I can control with
optional: false
and I can see that the top property is also read.I can read the nested property by doing the following
What I don't understand is why it works to access nested properties of
themesettings.yml
and not in my_config.yml
?Beta Was this translation helpful? Give feedback.
All reactions