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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
.cshtmlfile I can read nested properties which would output its valuefa fa-homeNow, I would like to get access to nested properties for another file
_config.ymlwhich 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: falseand 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.ymland not in my_config.yml?Beta Was this translation helpful? Give feedback.
All reactions