Plugin: jekyll-remote-theme


#1

Ben Balter just released a 0.1.0 version of a gem that allows users to specify a GitHub hosted theme as remote theme.

Theme developers are encouraged to send some feedback.

/cc @mmistakes @DavidDarnes


#2

Thanks very much for letting us know!


#3

Nice! Will test and report back any issues or feedback.


#4

Posted my findings here https://github.com/benbalter/jekyll-remote-theme/issues/8 incase anyone wants to tag on their testing results cc @mmistakes


#5

I had the same experience as you with Jekyll plugins that are declared as dependencies in the theme’s gempsec… had to add them to the Gemfile and plugins array in _config.yml manually.

Probably won’t be an issue if/when the Jekyll remote theme plugin is supported on GitHub Pages since that gem will pull in dependencies like Jekyll-seo-tag, sitemap, feed, paginate, etc.

I guess the only issue would be for theme gems using non-whitelisted gems in non-GitHub Pages environments.


#6

The plugin is now in beta on GitHub Pages :confetti_ball:

https://github.com/github/pages-gem/pull/495


#7

Works like a charm!

https://mmistakes.github.io/mm-remote-theme-test/


#8

Did you try changing the locale of the test site?
(just wondering, how the remote-theme plugin works with non-whitelisted plugins (e.g. jekyll-data))


#9

Yes tried it two ways locally, both fell back to the default English locale texts.

Since with jekyll-remote-theme you aren’t really using the gem version of MM it’s not installing any of its dependencies. So none of the bundled _data files are used and it falls back to the default values in the theme layouts.

I also tried adding gem "jekyll-data" to the local Gemfile, and as expected it’s ignored by GitHub Pages.