@@ -23,7 +23,13 @@ with a few enhancements thrown in for good measure:
23
23
## Table of Contents
24
24
25
25
1 . [ Installation] ( #installation )
26
- 2 . [ Configuration] ( #configuration )
26
+ 1 . [ Ruby Gem Method] ( #ruby-gem-method )
27
+ 2 . [ GitHub Pages Compatible Method] ( #github-pages-compatible-method )
28
+ 1 . [ Remove the Unnecessary] ( #remove-the-unnecessary )
29
+ 2 . [ Structure] ( #structure )
30
+ 1 . [ Starting Fresh] ( #starting-fresh )
31
+ 2 . [ Starting from jekyll new] ( #starting-from-jekyll-new )
32
+ 3 . [ Configuration] ( #configuration )
27
33
1 . [ Skin] ( #skin )
28
34
2 . [ Google Fonts] ( #google-fonts )
29
35
3 . [ Text] ( #text )
@@ -33,26 +39,33 @@ with a few enhancements thrown in for good measure:
33
39
7 . [ Reading Time] ( #reading-time )
34
40
8 . [ Comments (via Disqus)] ( #comments-via-disqus )
35
41
9 . [ Google Analytics] ( #google-analytics )
36
- 3 . [ Layouts] ( #layouts )
42
+ 4 . [ Layouts] ( #layouts )
37
43
1 . [ Default] ( #layout-default )
38
44
2 . [ Post] ( #layout-post )
39
45
3 . [ Page] ( #layout-page )
40
46
4 . [ Home] ( #layout-home )
41
47
5 . [ About] ( #layout-about )
42
48
6 . [ Curriculum Vitæ/Resume] ( #layout-cv )
43
- 4 . [ Customization] ( #customization )
49
+ 5 . [ Customization] ( #customization )
44
50
1 . [ Overriding Includes and Layouts] ( #overriding-includes-and-layouts )
45
51
2 . [ Customizing Sass (SCSS)] ( #customizing-sass-scss )
46
52
3 . [ Customizing JavaScript] ( #customizing-javascript )
47
53
4 . [ SVG Icons] ( #svg-icons )
48
54
5 . [ Customizing Sidebar Content] ( #customizing-sidebar-content )
49
- 5 . [ Development] ( #development )
50
- 6 . [ Contributing] ( #contributing )
55
+ 6 . [ Development] ( #development )
56
+ 7 . [ Contributing] ( #contributing )
51
57
1 . [ Pull Requests] ( #pull-requests )
52
- 7 . [ Credits] ( #credits )
58
+ 8 . [ Credits] ( #credits )
53
59
54
60
## Installation
55
61
62
+ If you're running Jekyll v3.3+ and self-hosting you can quickly install the
63
+ theme as Ruby gem. If you're hosting with GitHub Pages you'll have to use the
64
+ "repo fork" method or directly copy all of the theme files (see
65
+ [ structure] ( #structure ) below) into your project.
66
+
67
+ ### Ruby Gem Method
68
+
56
69
1 . Install the theme as a Ruby Gem by adding it to your ` Gemfile ` like so:
57
70
58
71
``` ruby
@@ -72,9 +85,91 @@ with a few enhancements thrown in for good measure:
72
85
theme : jekyll-theme-basically-basic
73
86
` ` `
74
87
75
- **Note:** 3rd-party Ruby gem themes aren't currently supported on sites hosted
76
- with [GitHub Pages](https://pages.github.com/). Basically Basic can still be
77
- used on GH Pages, but you will need to fork the theme instead.
88
+ ### GitHub Pages Compatible Method
89
+
90
+ Fork the [Basically Basic repo](https://github.com/mmistakes/jekyll-theme-basically-basic/fork),
91
+ then rename it to **USERNAME.github.io** --- replacing **USERNAME** with your
92
+ GitHub username.
93
+
94
+ **Note:** Your Jekyll site should be viewable immediately at
95
+ <http://USERNAME.github.io>. If it's not, you can force a rebuild by
96
+ **configuring your site** (see below for more details).
97
+
98
+ Replace the contents of ` Gemfile` found in the root of your Jekyll site with
99
+ the following :
100
+
101
+ ` ` ` ruby
102
+ source "https://rubygems.org"
103
+
104
+ gem "github-pages", group: :jekyll_plugins
105
+ ` ` `
106
+
107
+ Then run `bundle update` and verify that the [GitHub Pages gem](https://github.com/github/pages-gem)
108
+ and its dependencies install properly.
109
+
110
+ # ### Remove the Unnecessary
111
+
112
+ If you forked or downloaded the `jekyll-theme-basically-basic` repo you can
113
+ safely remove the following files and folders :
114
+
115
+ - ` .codeclimate.yml`
116
+ - ` .editorconfig`
117
+ - ` .gitattributes`
118
+ - ` .github`
119
+ - ` .scss-lint.yml`
120
+ - ` CHANGELOG.md`
121
+ - ` jekyll-theme-basically-basic.gemspec`
122
+ - ` LICENSE.md`
123
+ - ` Rakefile`
124
+ - ` README.md`
125
+ - ` screenshot.png`
126
+ - ` /docs`
127
+ - ` /example`
128
+
129
+ # # Structure
130
+
131
+ Layouts, includes, Sass partials, and data files are all placed in their default
132
+ locations. Stylesheets and scripts in `assets`, and a few development related
133
+ files in the project's root directory.
134
+
135
+ **Please note:** If you installed Basically Basic via the Ruby Gem method, theme
136
+ files found in `/_layouts`, `/_includes`, `/_sass`, and `/assets` will be
137
+ missing. This is normal as they are bundled with the [`jekyll-theme-basically-basic`](https://rubygems.org/gems/jekyll-theme-basically-basic) gem.
138
+
139
+ ` ` ` bash
140
+ jekyll-theme-basically-basic
141
+ ├── _data # data files
142
+ | └── theme.yml # theme settings and custom text
143
+ ├── _includes # theme includes and SVG icons
144
+ ├── _layouts # theme layouts (see below for details)
145
+ ├── _sass # Sass partials
146
+ ├── assets
147
+ | ├── javascripts
148
+ | | └── main.js
149
+ | ├── stylesheets
150
+ | | └── main.scss
151
+ ├── _config.yml # sample configuration
152
+ └── index.md # sample home page (all posts/not paginated)
153
+ ` ` `
154
+
155
+ # ## Starting Fresh
156
+
157
+ After creating a `Gemfile` and installing the theme you'll need to add and edit
158
+ the following files :
159
+
160
+ - [`_config.yml`](_config.yml)
161
+ - [`/_data/theme.yml`](_data/theme.yml)
162
+ - [`index.md`](index.md)
163
+
164
+ **Note:** Consult the [**pagination**](#pagination) documentation below for
165
+ instructions on how to enable it for the home page.
166
+
167
+ # ## Starting from `jekyll new`
168
+
169
+ Using the `jekyll new` command will get you up and running the quickest.
170
+
171
+ Edit `_config.yml` and create `_data/theme.yml` as instructed above and you're
172
+ good to go.
78
173
79
174
# # Configuration
80
175
@@ -196,13 +291,18 @@ following pagination settings:
196
291
` ` `
197
292
198
293
3. Create `index.html` (or rename `index.md`) in the root of your project and
199
- add `layout : home` `paginate: true` to its YAML Front Matter.
294
+ add the following front matter :
295
+
296
+ ` ` ` yaml
297
+ layout: home
298
+ paginate: true
299
+ ` ` `
200
300
201
301
# ## Author
202
302
203
303
Author information is used as meta data for post "by lines" and propagates the
204
- ` creator` field of Twitter summary cards with the following YAML Front Matter
205
- in `_config.yml` :
304
+ ` creator` field of Twitter summary cards with the following front matter in
305
+ `_config.yml` :
206
306
207
307
` ` ` yaml
208
308
author:
@@ -211,8 +311,8 @@ author:
211
311
picture: /assets/images/johndoe.png
212
312
` ` `
213
313
214
- Site-wide author information can be overridden in a document's YAML Front Matter
215
- in the same way :
314
+ Site-wide author information can be overridden in a document's front matter in
315
+ the same way :
216
316
217
317
` ` ` yaml
218
318
author:
@@ -221,9 +321,9 @@ author:
221
321
picture: /assets/images/janedoe.png
222
322
` ` `
223
323
224
- Or by specifying a corresponding key in the document's YAML Front Matter , that
324
+ Or by specifying a corresponding key in the document's front matter , that
225
325
exists in `site.data.authors`. E.g., you have the following in the document's
226
- YAML Front Matter :
326
+ front matter :
227
327
228
328
` ` ` yaml
229
329
author: megaman
@@ -268,7 +368,7 @@ with the following [environment value](http://jekyllrb.com/docs/configuration/#s
268
368
` JEKYLL_ENV=production`
269
369
270
370
If you don't want to display comments for a particular post you can disable
271
- them by adding `comments : false` to that post's YAML Front Matter .
371
+ them by adding `comments : false` to that post's front matter .
272
372
273
373
# ## Google Analytics
274
374
@@ -302,7 +402,7 @@ and provide additional styling and features inside of the `{{ content }}` block.
302
402
303
403
# ## `layout: post`
304
404
305
- This layout accommodates the following YAML Front Matter :
405
+ This layout accommodates the following front matter :
306
406
307
407
` ` ` yaml
308
408
# optional alternate title to replace page.title at the top of the page
@@ -344,7 +444,7 @@ differences.
344
444
345
445
# ## `layout: home`
346
446
347
- This layout accommodates the same YAML Front Matter as `layout : page`, with the
447
+ This layout accommodates the same front matter as `layout : page`, with the
348
448
addition of the following :
349
449
350
450
` ` ` yaml
@@ -353,7 +453,7 @@ paginate: true # enables pagination loop, see section above for additional setu
353
453
354
454
# ## `layout: about`
355
455
356
- This layout accommodates the same YAML Front Matter as `layout : page`, with the
456
+ This layout accommodates the same front matter as `layout : page`, with the
357
457
addition of the following to display an author picture :
358
458
359
459
` ` ` yaml
@@ -363,14 +463,14 @@ author:
363
463
` ` `
364
464
365
465
Recommended `picture` size is approximately `300 x 300` pixels. If `author`
366
- object is not explicitly set in the about page's YAML Front Matter the theme
466
+ object is not explicitly set in the about page's front matter the theme
367
467
will default to the value set in `_config.yml`.
368
468
369
469
If blank there no image will appear.
370
470
371
471
# ## `layout: cv`
372
472
373
- This layout accommodates the same YAML Front Matter as `layout : page`. It
473
+ This layout accommodates the same front matter as `layout : page`. It
374
474
leverages a [JSON-based file standard](https://jsonresume.org/schema/) for
375
475
resume data to conveniently render a curriculum vitæ or resume painlessly.
376
476
@@ -558,8 +658,9 @@ When submitting a pull request:
558
658
` my-awesome-new-feature` ) and describe the feature or fix.
559
659
3. Open a pull request on GitHub.
560
660
561
- Sample pages can be found in the [`/docs`](docs) folder if you'd like to tackle
562
- any "low-hanging fruit" like fixing typos, bad grammar, etc.
661
+ Sample pages can be found in the [`/docs`](docs) and [`/example`](/example)
662
+ folders if you'd like to tackle any "low-hanging fruit" like fixing typos, bad
663
+ grammar, etc.
563
664
564
665
---
565
666
0 commit comments