Skip to content

Correct config setting for using skins with Gem file? #3267

Answered by mmistakes
rjp23 asked this question in Q&A
Discussion options

You must be logged in to vote

There is almost no difference between using the theme as a Ruby gem (via the theme key) or as a remote theme (via the remote_theme key). The main difference is how the theme files are installed.

If you're hosting with GH Pages you need to use the remote_theme option. GitHub Pages does not let you install arbitrary 3rd party gems unless they're from a small list of approved gems.

You can set the skin with air or "air". Both are strings as far as YAML is concerned. There are some special characters in YAML that can give you errors or have unintended uses, so placing your YAML strings in quotes is generally safer.

TL/DR: set your _config.yml to:

remote_theme: "mmistakes/minimal-mistakes"
min…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@beyond9thousand
Comment options

@barriejc
Comment options

@barriejc
Comment options

@rishabh96b
Comment options

Answer selected by rjp23
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@iBug
Comment options

Comment options

You must be logged in to vote
1 reply
@frank20a
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants