jekyll-theme-basically-basic 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -1
  3. data/README.md +233 -73
  4. data/_includes/scripts.html +12 -1
  5. data/_includes/search-form.html +13 -0
  6. data/_includes/search/algolia-search-scripts.html +52 -0
  7. data/_includes/search/lunr-search-scripts.html +106 -0
  8. data/_layouts/default.html +18 -3
  9. data/_sass/basically-basic.scss +2 -1
  10. data/_sass/basically-basic/_base.scss +5 -5
  11. data/_sass/basically-basic/_global.scss +5 -1
  12. data/_sass/basically-basic/_navicons.scss +148 -125
  13. data/_sass/basically-basic/_search.scss +101 -0
  14. data/_sass/basically-basic/_sidebar.scss +166 -142
  15. data/_sass/basically-basic/_syntax-highlighting.scss +6 -0
  16. data/_sass/basically-basic/_utilities.scss +6 -5
  17. data/_sass/basically-basic/utilities/_visibility.scss +32 -0
  18. data/assets/javascripts/lunr/lunr.da.min.js +18 -0
  19. data/assets/javascripts/lunr/lunr.de.min.js +18 -0
  20. data/assets/javascripts/lunr/lunr.du.min.js +18 -0
  21. data/assets/javascripts/lunr/lunr.es.min.js +18 -0
  22. data/assets/javascripts/lunr/lunr.fi.min.js +18 -0
  23. data/assets/javascripts/lunr/lunr.fr.min.js +18 -0
  24. data/assets/javascripts/lunr/lunr.hu.min.js +18 -0
  25. data/assets/javascripts/lunr/lunr.it.min.js +18 -0
  26. data/assets/javascripts/lunr/lunr.ja.min.js +1 -0
  27. data/assets/javascripts/lunr/lunr.jp.min.js +1 -0
  28. data/assets/javascripts/lunr/lunr.min.js +6 -0
  29. data/assets/javascripts/lunr/lunr.multi.min.js +1 -0
  30. data/assets/javascripts/lunr/lunr.no.min.js +18 -0
  31. data/assets/javascripts/lunr/lunr.pt.min.js +18 -0
  32. data/assets/javascripts/lunr/lunr.ro.min.js +18 -0
  33. data/assets/javascripts/lunr/lunr.ru.min.js +18 -0
  34. data/assets/javascripts/lunr/lunr.stemmer.support.min.js +1 -0
  35. data/assets/javascripts/lunr/lunr.sv.min.js +18 -0
  36. data/assets/javascripts/lunr/lunr.tr.min.js +18 -0
  37. data/assets/javascripts/main.js +11 -1
  38. data/assets/javascripts/search-data.json +27 -0
  39. metadata +27 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 999d6d6981d0c93001cda4afb8f951ed64162934
4
- data.tar.gz: 72b35be9d95d27ff1b98ea806c2018cb1d9a1d04
3
+ metadata.gz: af4088cd3ad12fbbe43c2b1fc7deb2fd052830fc
4
+ data.tar.gz: e1d3e245f9ff07477ec4cdb3a0062bf5602936c5
5
5
  SHA512:
6
- metadata.gz: 9966e34422c22e9f6096f2cc9805ee8baddc5a3a493bb825fdfcebf1c3c3f69786503f86198858cd12e05413337bd445ced31553c0337206f515cb159ec86446
7
- data.tar.gz: 94d97365bbd1f9254d12b20ee448bcac14f06fec846d0206fc440a5fd49d9a5db81ddbfea95fb19bd8b75183ff0e48c96141c2aa13ff4ff4a6aa4f4ef623a5dd
6
+ metadata.gz: 4f7a93fd96347a5778255048e2946b3577e446ad4cee5071864016e4876cd048fa60de0b7f9400f736fa9b033786fd15a1da4e1a155e689d6396ee95c3201b9b
7
+ data.tar.gz: 2e43f709a5d0b19f9f032a1907bca588b2b1cc9e77603abab9c83c641056ef6ee471265491a35a00aa177fdf3365b4a2b89535ea80ba02366051507ab47f216b
@@ -5,10 +5,29 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
- ## [1.2.0] - 2018-01-05
8
+ ## [1.3.0] - 2018-02-16
9
+
10
+ ### Added
11
+ - Add jQuery script.
12
+ - Add site-wide search toggle.
13
+ - Add support for Lunr search. [#48](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/48)
14
+ - Add support for Algolia search. [#48](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/48)
9
15
 
10
16
  ### Changed
17
+ - New installation and upgrade instructions.
18
+ - Absolutely position navigation menu instead of sticking it to the top.
19
+ - Visually hide "Menu" label.
20
+ - Improve alignment of menu toggle when search is enabled.
21
+
22
+ ### Fixed
23
+ - Fix `border-bottom` for Gist line numbers.
24
+
25
+ ## [1.2.0] - 2018-01-05
26
+
27
+ ### Added
11
28
  - Use [jekyll-remote-theme](https://github.com/benbalter/jekyll-remote-theme) for demo site.
29
+
30
+ ### Changed
12
31
  - Update GitHub Pages compatible installation instructions to include jekyll-remote-theme method.
13
32
  - Update `site.gems` references to `site.plugins`. [#39](https://github.com/mmistakes/jekyll-theme-basically-basic/pull/39)
14
33
  - Update license and copyright.
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
1
  # [Basically Basic Jekyll Theme][1]
2
2
 
3
- [![Gem](https://img.shields.io/gem/v/jekyll-theme-basically-basic.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-basically-basic)
4
- [![license](https://img.shields.io/github/license/mmistakes/jekyll-theme-basically-basic.svg?style=flat-square)](LICENSE.md)
3
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/mmistakes/jekyll-theme-basically-basic/blob/master/LICENSE.md)
4
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.6-blue.svg)](https://jekyllrb.com/)
5
+ [![Ruby gem](https://img.shields.io/gem/v/jekyll-theme-basically-basic.svg)](https://rubygems.org/gems/jekyll-theme-basically-basic)
6
+ [![Tip Me via PayPal](https://img.shields.io/badge/PayPal-tip%20me-green.svg?logo=paypal)](https://www.paypal.me/mmistakes)
5
7
 
6
8
  Basically Basic is a [Jekyll theme](https://jekyllrb.com/docs/themes/) meant as
7
9
  a substitute for the default --- [Minima](https://github.com/jekyll/minima).
@@ -22,94 +24,103 @@ with a few enhancements thrown in for good measure:
22
24
  ## Table of Contents
23
25
 
24
26
  1. [Installation](#installation)
25
- 1. [Ruby Gem Method](#ruby-gem-method)
26
- 2. [GitHub Pages Method](#github-pages-method)
27
- 1. [Remove the Unnecessary](#remove-the-unnecessary)
28
- 2. [Structure](#structure)
29
- 1. [Starting Fresh](#starting-fresh)
30
- 2. [Starting from jekyll new](#starting-from-jekyll-new)
31
- 3. [Configuration](#configuration)
32
- 1. [Skin](#skin)
33
- 2. [Google Fonts](#google-fonts)
34
- 3. [Text](#text)
35
- 4. [Navigation](#navigation)
36
- 5. [Pagination](#pagination)
37
- 6. [Author](#author)
38
- 7. [Reading Time](#reading-time)
39
- 8. [Comments (via Disqus)](#comments-via-disqus)
40
- 9. [Google Analytics](#google-analytics)
41
- 4. [Layouts](#layouts)
42
- 1. [Default](#layout-default)
43
- 2. [Post](#layout-post)
44
- 3. [Page](#layout-page)
45
- 4. [Home](#layout-home)
46
- 5. [About](#layout-about)
47
- 6. [Curriculum Vitæ/Resume](#layout-cv)
48
- 5. [Customization](#customization)
49
- 1. [Overriding Includes and Layouts](#overriding-includes-and-layouts)
50
- 2. [Customizing Sass (SCSS)](#customizing-sass-scss)
51
- 3. [Customizing JavaScript](#customizing-javascript)
52
- 4. [SVG Icons](#svg-icons)
53
- 5. [Customizing Sidebar Content](#customizing-sidebar-content)
54
- 6. [Development](#development)
55
- 7. [Contributing](#contributing)
56
- 1. [Pull Requests](#pull-requests)
57
- 8. [Credits](#credits)
27
+ 1. [Ruby Gem Method](#ruby-gem-method)
28
+ 2. [GitHub Pages Method](#github-pages-method)
29
+ 1. [Remove the Unnecessary](#remove-the-unnecessary)
30
+ 2. [Upgrading](#upgrading)
31
+ 1. [Ruby Gem](#ruby-gem)
32
+ 2. [Remote Theme](#remote-theme)
33
+ 3. [Use Git](#use-git)
34
+ 1. [Pull Down Updates](#pull-down-updates)
35
+ 4. [Update Files Manually](#update-files-manually)
36
+ 3. [Structure](#structure)
37
+ 1. [Starting Fresh](#starting-fresh)
38
+ 2. [Starting from `jekyll new`](#starting-from-jekyll-new)
39
+ 4. [Configuration](#configuration)
40
+ 1. [Skin](#skin)
41
+ 2. [Google Fonts](#google-fonts)
42
+ 3. [Text](#text)
43
+ 4. [Navigation](#navigation)
44
+ 5. [Pagination](#pagination)
45
+ 6. [Search](#search)
46
+ 1. [Lunr (default)](#lunr-default)
47
+ 2. [Algolia](#algolia)
48
+ 7. [Author](#author)
49
+ 8. [Reading Time](#reading-time)
50
+ 9. [Comments (via Disqus)](#comments-via-disqus)
51
+ 10. [Google Analytics](#google-analytics)
52
+ 5. [Layouts](#layouts)
53
+ 1. [`layout: default`](#layout-default)
54
+ 2. [`layout: post`](#layout-post)
55
+ 3. [`layout: page`](#layout-page)
56
+ 4. [`layout: home`](#layout-home)
57
+ 5. [`layout: about`](#layout-about)
58
+ 6. [`layout: cv`](#layout-cv)
59
+ 6. [Customization](#customization)
60
+ 1. [Overriding Includes and Layouts](#overriding-includes-and-layouts)
61
+ 2. [Customizing Sass (SCSS)](#customizing-sass-scss)
62
+ 3. [Customizing JavaScript](#customizing-javascript)
63
+ 4. [SVG Icons](#svg-icons)
64
+ 5. [Customizing Sidebar Content](#customizing-sidebar-content)
65
+ 7. [Development](#development)
66
+ 8. [Contributing](#contributing)
67
+ 1. [Pull Requests](#pull-requests)
68
+ 9. [Credits](#credits)
69
+ 10. [License](#license)
58
70
 
59
71
  ## Installation
60
72
 
61
- If you're running Jekyll v3.3+ and self-hosting you can quickly install the
62
- theme as Ruby gem. If you're hosting with GitHub Pages you'll have to use the
63
- "repo fork" method or directly copy all of the theme files (see
64
- [structure](#structure) below) into your project.
73
+ If you're running Jekyll v3.5+ and self-hosting you can quickly install the
74
+ theme as a Ruby gem. If you're hosting with GitHub Pages you can install as a
75
+ remote theme or directly copy all of the theme files (see [structure](#structure)
76
+ below) into your project.
65
77
 
66
78
  ### Ruby Gem Method
67
79
 
68
- 1. Install the theme as a Ruby Gem by adding it to your `Gemfile` like so:
80
+ 1. Add this line to your Jekyll site's `Gemfile`:
69
81
 
70
82
  ```ruby
71
83
  gem "jekyll-theme-basically-basic"
72
84
  ```
73
-
74
- 2. Fetch and update your bundled gems by running the following
75
- [Bundler](http://bundler.io/) command:
76
-
77
- ```bash
78
- bundle
79
- ```
80
-
81
- 3. Set the `theme` in your project's Jekyll configuration, `_config.yml`:
85
+ 2. Add this line to your Jekyll site's `_config.yml` file:
82
86
 
83
87
  ```yaml
84
88
  theme: jekyll-theme-basically-basic
85
89
  ```
86
90
 
87
- ### GitHub Pages Method
88
-
89
- If you're hosting with GitHub Pages follow these steps instead:
91
+ 2. Then run [Bundler](http://bundler.io/) to install the theme gem and dependencies:
92
+
93
+ ```terminal
94
+ bundle install
95
+ ```
90
96
 
91
- Replace `gem "jekyll"` with:
97
+ ### GitHub Pages Method
92
98
 
93
- ```ruby
94
- gem "github-pages", group: :jekyll_plugins
95
- ```
99
+ GitHub Pages has added [full support](https://github.com/blog/2464-use-any-theme-with-github-pages)
100
+ for any GitHub-hosted theme.
96
101
 
97
- Run `bundle update` and verify that all gems install properly.
102
+ 1. Replace `gem "jekyll"` with:
98
103
 
99
- Add `remote_theme: "mmistakes/jekyll-theme-basically-basic"` to your `_config.yml` file.
104
+ ```ruby
105
+ gem "github-pages", group: :jekyll_plugins
106
+ ```
100
107
 
101
- Then add [`jekyll-remote-theme`](https://github.com/benbalter/jekyll-remote-theme) to the `plugins` (previously gems) array in your `_config.yml` file like so:
108
+ 2. Run `bundle update` and verify that all gems install properly.
102
109
 
103
- ```yaml
104
- plugins:
105
- - jekyll-remote-theme
106
- ```
110
+ 3. Add `remote_theme: "mmistakes/jekyll-theme-basically-basic"` to your
111
+ `_config.yml` file. Remove any other `theme:` or `remote_theme:` entries.
107
112
 
108
- Remove any other `theme:` or `remote_theme:` entry.
113
+ ---
109
114
 
110
- **Note:** Your Jekyll site should be viewable immediately at <http://USERNAME.github.io>. If it's not, you can force a rebuild by **Customizing Your Site** (see below for more details).
115
+ **Note:** Your Jekyll site should be viewable immediately at
116
+ <http://USERNAME.github.io>. If it's not, you can force a rebuild by
117
+ **Customizing Your Site** (see below for more details).
111
118
 
112
- If you're hosting several Jekyll based sites under the same GitHub username you will have to use Project Pages instead of User Pages. Essentially you rename the repo to something other than **USERNAME.github.io** and create a `gh-pages` branch off of `master`. For more details on how to set things up check [GitHub's documentation](https://help.github.com/articles/user-organization-and-project-pages/).
119
+ If you're hosting several Jekyll based sites under the same GitHub username you
120
+ will have to use Project Pages instead of User Pages. Essentially you rename the
121
+ repo to something other than **USERNAME.github.io** and create a `gh-pages`
122
+ branch off of `master`. For more details on how to set things up check
123
+ [GitHub's documentation](https://help.github.com/articles/user-organization-and-project-pages/).
113
124
 
114
125
  #### Remove the Unnecessary
115
126
 
@@ -130,6 +141,95 @@ safely remove the following files and folders:
130
141
  - `/docs`
131
142
  - `/example`
132
143
 
144
+ ## Upgrading
145
+
146
+ If you're using the Ruby Gem or remote theme versions of Basically Basic,
147
+ upgrading is fairly painless.
148
+
149
+ To check which version you are currently using, view the source of your built
150
+ site and you should something similar to:
151
+
152
+ ```
153
+ <!--
154
+ Basically Basic Jekyll Theme 1.2.0
155
+ Copyright 2017-2018 Michael Rose - mademistakes.com | @mmistakes
156
+ Free for personal and commercial use under the MIT license
157
+ https://github.com/mmistakes/jekyll-basically-theme/blob/master/LICENSE.md
158
+ -->
159
+ ```
160
+
161
+ At the top of every `.html` file, `/assets/css/main.css`, and `/assets/js/main.js`.
162
+
163
+ ### Ruby Gem
164
+
165
+ Simply run `bundle update` if you're using Bundler (have a `Gemfile`) or `gem
166
+ update jekyll-theme-basically-basic` if you're not.
167
+
168
+ ### Remote Theme
169
+
170
+ When hosting with GitHub Pages you'll need to push up a commit to force a
171
+ rebuild with the latest [theme release](https://github.com/mmistakes/jekyll-theme-basically-basic/releases).
172
+
173
+ An empty commit will get the job done too if you don't have anything to push at
174
+ the moment:
175
+
176
+ ```terminal
177
+ git commit --allow-empty -m "Force rebuild of site"
178
+ ```
179
+
180
+ ### Use Git
181
+
182
+ If you want to get the most out of the Jekyll + GitHub Pages workflow, then
183
+ you'll need to utilize Git. To pull down theme updates you must first ensure
184
+ there's an upstream remote. If you forked the theme's repo then you're likely
185
+ good to go.
186
+
187
+ To double check, run `git remote -v` and verify that you can fetch from `origin https://github.com/mmistakes/jekyll-theme-basically-basic.git`.
188
+
189
+ To add it you can do the following:
190
+
191
+ ```terminal
192
+ git remote add upstream https://github.com/mmistakes/jekyll-theme-basically-basic.git
193
+ ```
194
+
195
+ #### Pull Down Updates
196
+
197
+ Now you can pull any commits made to theme's `master` branch with:
198
+
199
+ ```terminal
200
+ git pull upstream master
201
+ ```
202
+
203
+ Depending on the amount of customizations you've made after forking, there's
204
+ likely to be merge conflicts. Work through any conflicting files Git flags,
205
+ staging the changes you wish to keep, and then commit them.
206
+
207
+ ### Update Files Manually
208
+
209
+ Another way of dealing with updates is [downloading the theme](https://github.com/mmistakes/jekyll-theme-basically-basic/archive/master.zip)
210
+ --- replacing your layouts, includes, and assets with the newer ones manually.
211
+ To be sure that you don't miss any changes it's probably a good idea to review
212
+ the theme's [commit history](https://github.com/mmistakes/jekyll-theme-basically-basic/commits/master)
213
+ to see what's changed since.
214
+
215
+ Here's a quick checklist of the important folders/files you'll want to be
216
+ mindful of:
217
+
218
+ | Name | |
219
+ | ---- | --- |
220
+ | `_layouts` | Replace all. Apply edits if you customized any layouts. |
221
+ | `_includes` | Replace all. Apply edits if you customized any includes. |
222
+ | `assets` | Replace all. Apply edits if you customized stylesheets or scripts. |
223
+ | `_sass` | Replace all. Apply edits if you customized Sass partials. |
224
+ | `_data/theme.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
225
+ | `_config.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
226
+
227
+ ---
228
+
229
+ **Note:** If you're not seeing the latest version, be sure to flush browser and
230
+ CDN caches. Depending on your hosting environment older versions of
231
+ `/assets/css/main.css`, `/assets/js/main.js`, or `*.html` may be cached.
232
+
133
233
  ## Structure
134
234
 
135
235
  Layouts, includes, Sass partials, and data files are all placed in their default
@@ -140,7 +240,7 @@ files in the project's root directory.
140
240
  files found in `/_layouts`, `/_includes`, `/_sass`, and `/assets` will be
141
241
  missing. This is normal as they are bundled with the [`jekyll-theme-basically-basic`](https://rubygems.org/gems/jekyll-theme-basically-basic) gem.
142
242
 
143
- ```bash
243
+ ```terminal
144
244
  jekyll-theme-basically-basic
145
245
  ├── _data # data files
146
246
  | └── theme.yml # theme settings and custom text
@@ -302,6 +402,67 @@ add the following front matter:
302
402
  paginate: true
303
403
  ```
304
404
 
405
+ ### Search
406
+
407
+ To enable site-wide search add `search: true` to your `_config.yml`.
408
+
409
+ #### Lunr (default)
410
+
411
+ The default search uses [**Lunr**](https://lunrjs.com/) to build a search index of all your documents. This method is 100% compatible with sites hosted on GitHub Pages.
412
+
413
+ **Note:** Only the first 50 words of a post or page's body content is added to the Lunr search index. Setting `search_full_content` to `true` in your `_config.yml` will override this and could impact page load performance.
414
+
415
+ #### Algolia
416
+
417
+ For faster and more relevant search:
418
+
419
+ 1. Add the [`jekyll-algolia`](https://github.com/algolia/jekyll-algolia) gem to your `Gemfile`, in the `:jekyll_plugins` section.
420
+
421
+ ```ruby
422
+ group :jekyll_plugins do
423
+ gem "jekyll-feed"
424
+ gem "jekyll-seo-tag"
425
+ gem "jekyll-sitemap"
426
+ gem "jekyll-paginate"
427
+ gem "jekyll-algolia"
428
+ end
429
+ ```
430
+
431
+ Once this is done, download all dependencies by running `bundle install`.
432
+
433
+ 2. Switch search providers from `lunr` to `algolia` in your `_config.yml` file:
434
+
435
+ ```yaml
436
+ search_provider: algolia
437
+ ```
438
+
439
+ 3. Add the following Algolia credentials to your `_config.yml` file. *If you don't have an Algolia account, you can open a free [Community plan](https://www.algolia.com/users/sign_up/hacker). Once signed in, you can grab your credentials from [your dashboard](https://www.algolia.com/licensing).*
440
+
441
+ ```yaml
442
+ algolia:
443
+ application_id: # YOUR_APPLICATION_ID
444
+ index_name: # YOUR_INDEX_NAME
445
+ search_only_api_key: # YOUR_SEARCH_ONLY_API_KEY
446
+ powered_by: # true (default), false
447
+ ```
448
+
449
+ 4. Once your credentials are setup, you can run the indexing with the following command:
450
+
451
+ ```
452
+ ALGOLIA_API_KEY=your_admin_api_key bundle exec jekyll algolia
453
+ ```
454
+
455
+ For Windows users you will have to use `set` to assigned the `ALGOLIA_API_KEY` environment variable.
456
+
457
+ ```
458
+ set ALGOLIA_API_KEY=your_admin_api_key
459
+ bundle exec jekyll algolia
460
+ ```
461
+
462
+ Note that `ALGOLIA_API_KEY` should be set to your admin API key.
463
+
464
+ To use the Algolia search with GitHub Pages hosted sites follow [this deployment guide](https://community.algolia.com/jekyll-algolia/github-pages.html). Or this guide for [deploying on Netlify](https://community.algolia.com/jekyll-algolia/netlify.html).
465
+
305
466
  ### Author
306
467
 
307
468
  Author information is used as meta data for post "by lines" and propagates the
@@ -360,7 +521,8 @@ Front Matter.
360
521
  Optionally, if you have a [Disqus](https://disqus.com/) account, you can show a
361
522
  comments section below each post.
362
523
 
363
- To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) to your project's `_config.yml` file:
524
+ To enable Disqus comments, add your [Disqus shortname](https://help.disqus.com/customer/portal/articles/466208) to your project's
525
+ `_config.yml` file:
364
526
 
365
527
  ```yaml
366
528
  disqus:
@@ -521,19 +683,17 @@ To override the default [Sass](http://sass-lang.com/guide) (located in theme's
521
683
  - Customize what you want inside `<your_project/assets/stylesheets/main.scss`.
522
684
 
523
685
  **Note:** To make more extensive changes and customize the Sass partials bundled
524
- in the gem. You will need to copy the complete contents the `_sass` directory to
525
- `<your_project>` due to the way Jekyll currently reads those files.
686
+ in the gem. You will need to copy the complete contents of the `_sass` directory
687
+ to `<your_project>` due to the way Jekyll currently reads those files.
526
688
 
527
689
  To make basic tweaks to theme's style Sass variables can be overridden by adding
528
690
  to `<your_project>/assets/stylesheets/main.scss`. For instance, to change the
529
- accent color used throughout the theme add:
691
+ accent color used throughout the theme add the following:
530
692
 
531
693
  ```scss
532
694
  $accent-color: red;
533
695
  ```
534
696
 
535
- Before any `@import` lines.
536
-
537
697
  ### Customizing JavaScript
538
698
 
539
699
  To override the default JavaScript bundled in the theme, do one of the following:
@@ -2,4 +2,15 @@
2
2
  {% include google-analytics.html %}
3
3
  {% endif %}
4
4
 
5
- <script async src="{{ '/assets/javascripts/main.js' | relative_url }}"></script>
5
+ <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
6
+ <script async src="{{ '/assets/javascripts/main.js' | relative_url }}"></script>
7
+
8
+ {% if site.search %}
9
+ {%- assign search_provider = site.search_provider | default: "lunr" -%}
10
+ {%- case search_provider -%}
11
+ {%- when "lunr" -%}
12
+ {% include search/lunr-search-scripts.html %}
13
+ {%- when "algolia" -%}
14
+ {% include search/algolia-search-scripts.html %}
15
+ {%- endcase -%}
16
+ {% endif %}
@@ -0,0 +1,13 @@
1
+ <div class="inner">
2
+ {% if site.search %}
3
+ {%- assign search_provider = site.search_provider | default: "lunr" -%}
4
+ {%- case search_provider -%}
5
+ {%- when "lunr" -%}
6
+ <input type="text" id="search" class="search-input" tabindex="-1" placeholder="{{ site.data.theme.t.menu.search_placeholder_text | default: 'Enter your search term...' }}" />
7
+ <div id="results" class="results"></div>
8
+ {%- when "algolia" -%}
9
+ <div tabindex="-1" class="search-searchbar"></div>
10
+ <div class="search-hits"></div>
11
+ {%- endcase -%}
12
+ {% endif %}
13
+ </div>