According to this, "Jekyll will read-in a _config.yml
at the root of the theme-gem and merge its data into the site’s existing configuration data." But I've created a theme with a config that looks like this:
And I'm referencing the variables like this in my theme's css: (Notice empty frontmatter and liquid tag on last line.)
And the result comes out like this in the rendered site: (Notice the emptystring where my liquid tag used to be.)
If I put the variables in the _config
of my site rather than in the one for the theme, everything works as expected. But I want these variables tied to the theme.
To make matters more mysterious, I can find examples in the common minimal-mistakes
theme where site variables are defined in the theme and then used, just as I've used these, in theme files with no issues. (Notice site.yadda.yadda, which are defined in the root directory's config.yml
.)
I am not creating a full gem; I'm using github-pages
' remote_theme
feature. I would suspect that were the cause, except that themes like minimal-mistakes
work fine by this method.
What is going on?