parent
dcbc443387
commit
5d1f85928a
|
@ -166,20 +166,21 @@ For example, search for [jekyll theme on RubyGems](https://rubygems.org/search?u
|
|||
|
||||
To install a gem-based theme:
|
||||
|
||||
1. Add the theme to your site's `Gemfile`:
|
||||
1. Add the theme gem to your site's `Gemfile`:
|
||||
|
||||
```ruby
|
||||
# ./Gemfile
|
||||
|
||||
gem "jekyll-theme-awesome"
|
||||
# This is an example, declare the theme gem you want to use here
|
||||
gem "jekyll-theme-minimal"
|
||||
```
|
||||
Or if you've started with the `jekyll new` command, replace `gem "minima", "~> 2.0"` with your theme-gem:
|
||||
Or if you've started with the `jekyll new` command, replace `gem "minima", "~> 2.0"` with the gem you want, e.g:
|
||||
|
||||
```diff
|
||||
# ./Gemfile
|
||||
|
||||
- gem "minima", "~> 2.0"
|
||||
+ gem "jekyll-theme-awesome"
|
||||
+ gem "jekyll-theme-minimal"
|
||||
```
|
||||
|
||||
2. Install the theme:
|
||||
|
@ -191,7 +192,7 @@ To install a gem-based theme:
|
|||
3. Add the following to your site's `_config.yml` to activate the theme:
|
||||
|
||||
```yaml
|
||||
theme: jekyll-theme-awesome
|
||||
theme: jekyll-theme-minimal
|
||||
```
|
||||
|
||||
4. Build your site:
|
||||
|
|
Loading…
Reference in New Issue