jekyll-remote-theme icon indicating copy to clipboard operation
jekyll-remote-theme copied to clipboard

Allow local paths to theme

Open mulle-nat opened this issue 4 years ago • 3 comments

I would like to separate my theme from the blog repository with the posts. With remote-theme I can do this, when I am hosting on github. But for a local setup, it doesn't work (for me). Something like remote_theme: ../my_theme or so would be nice. I could do this with symlinks, but I'd prefer it, if my site was in a somewhat more "standard" setup.

mulle-nat avatar Jan 01 '22 13:01 mulle-nat

Given the current implementation, I don't know that a local set up makes sense (unless you want to host a local zip of the theme and keep it up to date). The more out of the box setup, would be to package your theme as a Gem, and in your Gemfile, point bundler to a local path. I actually do this frequently for local theme development of my remote theme.

benbalter avatar Jan 04 '22 16:01 benbalter

Thanks. The idea of bundling it into a gem, didn't occur to me, as my ruby skills are very weak. I will try this out.

mulle-nat avatar Jan 04 '22 23:01 mulle-nat

Github pages doesn't respect Gemfiles, so this might still be useful for some people

zbyte64 avatar Feb 12 '23 05:02 zbyte64