Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use theme gem on GitHub Pages #1339

Closed
mmistakes opened this issue Nov 7, 2017 · 10 comments
Closed

Use theme gem on GitHub Pages #1339

mmistakes opened this issue Nov 7, 2017 · 10 comments

Comments

@mmistakes
Copy link
Owner

GitHub Pages has whitelisted the Jekyll Remote Theme plugin which means Minimal Mistakes can finally be used without needing to fork this repo.

This is apparently in beta, but in my testing everything works as expected. To get up in running follow the instructions for the installing the Ruby gem version of the theme, then:

Step 1. Add the following to your _config.yml file

plugins:
  - jekyll-remote-theme

remote_theme: mmistakes/minimal-mistakes

Step 2. Add gem 'jekyll-remote-theme' to your Gemfile if building locally with the GitHub Pages gem.

An example repo can be viewed here, which is hosted on GitHub Pages.

@vg
Copy link

vg commented Nov 8, 2017

Any idea on how to use the different skins/color variations using remote_theme?

@mmistakes
Copy link
Owner Author

mmistakes commented Nov 8, 2017

Haven't tested it but should work the same way you'd normally use them, set the skin you want in _config.yml.

minimal_mistakes_skin: "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise"

@mmistakes
Copy link
Owner Author

Tested. Adding minimal_mistakes_skin and the variation you want to your _config.yml works as it should.

@vg
Copy link

vg commented Nov 8, 2017

I did test it before commenting above. It did not work. Here is the config.yml and the built site.

https://github.com/vg/mm-remote-theme-test/blob/master/_config.yml
https://vg.github.io/mm-remote-theme-test/

@mmistakes
Copy link
Owner Author

@vg It works, I just switched my demo site to dark. The reason it's not working for you is you didn't update the url in the _config.yml file. You still have it pointing to my repo's CSS.

You'll notice if you fire up your test repo it'll go from the default skin to dark because it's using the CSS from my test repo, not yours. Change this line to url: https://vg.github.io and it'll work.

@LongQi
Copy link

LongQi commented Nov 10, 2017

But if I modify the "locale", it did not work.

@mmistakes
Copy link
Owner Author

@LongQi You still need to commit the _data/ui-text.yml file. The test theme repo I built didn't include those so it just defaults back to English.

mmistakes added a commit that referenced this issue Nov 10, 2017
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: #1339
@ldt116
Copy link

ldt116 commented Nov 14, 2017

Please add this good news to the doc, which is easier for newcomers to reach out.

Can you also post some migration guide for someone who forked repo to use the remote theme?

@mmistakes
Copy link
Owner Author

mmistakes commented Nov 14, 2017

@ldt116 Docs were updated last week. See GitHub Pages compatible method in the Quick Start instructions.

https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/

For migration follow the guidelines under "Setup Your Site." You can ignore the Gemfile specific stuff as that only applies to the Ruby gem version.

https://mmistakes.github.io/minimal-mistakes/docs/quick-start-guide/#migrating-to-gem-version

@ldt116
Copy link

ldt116 commented Nov 15, 2017

Oh. Thanks for pointing out. I missed that.

snayak04 pushed a commit to snayak04/OLD that referenced this issue Jan 8, 2019
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
jpogorzelski pushed a commit to jpogorzelski/jpogorzelski.github.io.old that referenced this issue Feb 11, 2019
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
kkunapuli pushed a commit to kkunapuli/kkunapuli.github.io that referenced this issue May 30, 2019
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes#1339
sauleh pushed a commit to sauleh/personal_website_template that referenced this issue Oct 13, 2019
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
npflueger pushed a commit to npflueger/npflueger.github.io that referenced this issue Dec 30, 2020
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
shnizzedy pushed a commit to nmind/nmind.github.io that referenced this issue Nov 4, 2021
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
shnizzedy pushed a commit to nmind/nmind.github.io that referenced this issue Nov 4, 2021
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
shnizzedy pushed a commit to nmind/nmind.github.io that referenced this issue Nov 5, 2021
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
shnizzedy pushed a commit to nmind/nmind.github.io that referenced this issue Nov 5, 2021
Include new `jekyll-remote-theme` method for using Ruby gem version of the theme with GitHub Pages hosted sites.

ref: mmistakes/minimal-mistakes#1339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants