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
The text was updated successfully, but these errors were encountered:
SourLemonJuice
changed the title
Can't use many theme.* liquid variable with remote theme
Can't use many "theme.*" liquid variable with remote theme
Oct 1, 2024
If you add {{ theme }} to a page - you will get " Jekyll::Drops::ThemeDrop ". So the theme variable, is not a collection/array, but rather an object.. This object is populated from the gemspec file, here: lib/jekyll/drops/theme_drop.rb, , but since jekyll core is not written to access the theme's .gemspec (in a remote sense) it falls back to an empty object content in line #35.
This is not a fix tho - it's a why. idk what the fix is, except having the plugin override the themeThemeDrop object.
Describe the bug
When the site using remote theme, if trying to use some variables in "themes.*" an error is thrown:
The variable that go wrong are:
authors
,description
,version
,metadata
But these are no problem:
root
,dependencies
If the remote theme can't access this info. Then can it just warning or return a default value?
Now it will break the whole build
Steps to reproduce the behavior
{{ theme.authors }}
into any pageAdditional context
The text was updated successfully, but these errors were encountered: