jekyll-theme-so-simple-libre 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +329 -0
  3. data/LICENSE +21 -0
  4. data/README.md +1148 -0
  5. data/_data/authors.yml +16 -0
  6. data/_data/navigation.yml +14 -0
  7. data/_data/text.yml +193 -0
  8. data/_includes/documents-collection.html +19 -0
  9. data/_includes/entry-date.html +6 -0
  10. data/_includes/entry.html +38 -0
  11. data/_includes/footer-custom.html +3 -0
  12. data/_includes/footer.html +24 -0
  13. data/_includes/head-custom.html +5 -0
  14. data/_includes/head-feed.html +1 -0
  15. data/_includes/head-seo.html +1 -0
  16. data/_includes/head.html +47 -0
  17. data/_includes/masthead.html +18 -0
  18. data/_includes/navigation.html +17 -0
  19. data/_includes/page-author.html +37 -0
  20. data/_includes/page-categories.html +15 -0
  21. data/_includes/page-date.html +4 -0
  22. data/_includes/page-image.html +14 -0
  23. data/_includes/page-pagination.html +19 -0
  24. data/_includes/page-tags.html +15 -0
  25. data/_includes/posts-all.html +3 -0
  26. data/_includes/posts-category.html +3 -0
  27. data/_includes/posts-limit.html +5 -0
  28. data/_includes/posts-paginated.html +74 -0
  29. data/_includes/posts-tag.html +3 -0
  30. data/_includes/read-time.html +16 -0
  31. data/_includes/responsive-embed +16 -0
  32. data/_includes/skip-links.html +8 -0
  33. data/_includes/social-share.html +6 -0
  34. data/_includes/talkyard-comments-provider.html +10 -0
  35. data/_includes/toc +9 -0
  36. data/_layouts/categories.html +81 -0
  37. data/_layouts/category.html +9 -0
  38. data/_layouts/collection.html +9 -0
  39. data/_layouts/default.html +21 -0
  40. data/_layouts/home.html +17 -0
  41. data/_layouts/page.html +30 -0
  42. data/_layouts/post.html +41 -0
  43. data/_layouts/posts.html +29 -0
  44. data/_layouts/tag.html +9 -0
  45. data/_layouts/tags.html +81 -0
  46. data/_sass/so-simple.scss +31 -0
  47. data/_sass/so-simple/_author.scss +47 -0
  48. data/_sass/so-simple/_base.scss +106 -0
  49. data/_sass/so-simple/_buttons.scss +64 -0
  50. data/_sass/so-simple/_entries.scss +194 -0
  51. data/_sass/so-simple/_functions.scss +4 -0
  52. data/_sass/so-simple/_global.scss +353 -0
  53. data/_sass/so-simple/_icons.scss +43 -0
  54. data/_sass/so-simple/_mixins.scss +5 -0
  55. data/_sass/so-simple/_notices.scss +57 -0
  56. data/_sass/so-simple/_page.scss +286 -0
  57. data/_sass/so-simple/_reset.scss +522 -0
  58. data/_sass/so-simple/_skin.scss +552 -0
  59. data/_sass/so-simple/_syntax-highlighting.scss +68 -0
  60. data/_sass/so-simple/_tables.scss +34 -0
  61. data/_sass/so-simple/_utilities.scss +7 -0
  62. data/_sass/so-simple/_variables.scss +98 -0
  63. data/_sass/so-simple/functions/_color.scss +21 -0
  64. data/_sass/so-simple/functions/_em.scss +7 -0
  65. data/_sass/so-simple/functions/_fluid-type.scss +33 -0
  66. data/_sass/so-simple/functions/_yiq.scss +38 -0
  67. data/_sass/so-simple/mixins/_clearfix.scss +32 -0
  68. data/_sass/so-simple/mixins/_float.scss +15 -0
  69. data/_sass/so-simple/mixins/_image.scss +38 -0
  70. data/_sass/so-simple/mixins/_lists.scss +9 -0
  71. data/_sass/so-simple/mixins/_text-truncate.scss +10 -0
  72. data/_sass/so-simple/utilities/_accessibility.scss +42 -0
  73. data/_sass/so-simple/utilities/_align.scss +60 -0
  74. data/_sass/so-simple/utilities/_animations.scss +99 -0
  75. data/_sass/so-simple/utilities/_clearfix.scss +7 -0
  76. data/_sass/so-simple/utilities/_float.scss +7 -0
  77. data/_sass/so-simple/utilities/_responsive-embed.scss +66 -0
  78. data/_sass/so-simple/utilities/_text.scss +48 -0
  79. data/_sass/so-simple/vendor/breakpoint/_breakpoint.scss +114 -0
  80. data/_sass/so-simple/vendor/breakpoint/_context.scss +95 -0
  81. data/_sass/so-simple/vendor/breakpoint/_helpers.scss +151 -0
  82. data/_sass/so-simple/vendor/breakpoint/_legacy-settings.scss +50 -0
  83. data/_sass/so-simple/vendor/breakpoint/_no-query.scss +15 -0
  84. data/_sass/so-simple/vendor/breakpoint/_parsers.scss +215 -0
  85. data/_sass/so-simple/vendor/breakpoint/_respond-to.scss +82 -0
  86. data/_sass/so-simple/vendor/breakpoint/_settings.scss +71 -0
  87. data/_sass/so-simple/vendor/breakpoint/parsers/_double.scss +33 -0
  88. data/_sass/so-simple/vendor/breakpoint/parsers/_query.scss +82 -0
  89. data/_sass/so-simple/vendor/breakpoint/parsers/_resolution.scss +31 -0
  90. data/_sass/so-simple/vendor/breakpoint/parsers/_single.scss +26 -0
  91. data/_sass/so-simple/vendor/breakpoint/parsers/_triple.scss +36 -0
  92. data/_sass/so-simple/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
  93. data/_sass/so-simple/vendor/breakpoint/parsers/double/_default.scss +22 -0
  94. data/_sass/so-simple/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
  95. data/_sass/so-simple/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
  96. data/_sass/so-simple/vendor/breakpoint/parsers/single/_default.scss +13 -0
  97. data/_sass/so-simple/vendor/breakpoint/parsers/triple/_default.scss +18 -0
  98. data/_sass/so-simple/vendor/lity/_lity.scss +221 -0
  99. data/assets/css/main.scss +8 -0
  100. data/assets/css/skins/dark.scss +43 -0
  101. data/assets/css/skins/default.scss +44 -0
  102. data/assets/css/skins/light.scss +44 -0
  103. metadata +262 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a21f8914aea05dbd9fa4ca727c9b7b9ec0c87ebfade90bda970e41ac15542ddb
4
+ data.tar.gz: e9e5234034bb6afb85a75005757c8ab6bf1e843e720d548a7121577a9e097208
5
+ SHA512:
6
+ metadata.gz: 1f58d17920f533de6213daa8138c63190c7c556f9ab902dba86623f0f0b88fabcca0d7438a9d28eceb561c541aedf21370114ea870b60d7e6ec3b55381699870
7
+ data.tar.gz: 3b14215c5594222797fa7ebc1f290a21b68d7e314cdd9590778dd90059ec7fab17240bb51b9e12dbf0d768f774dc357984d9338ec67b159d47ac20ded5738677
@@ -0,0 +1,329 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
+ and this project adheres to [Semantic Versioning](http://semver.org/).
7
+
8
+ ## [Unreleased] -
9
+
10
+ ### Changed
11
+ - Don't hide author avatar on smaller screens.
12
+ - Improve readability of text on smaller screens by increasing minimum font-size from `14` to `16px`.
13
+ - Replace font-size sizes with `rem` units instead of `em`.
14
+ - Update MathJax to v3. Add options to select component combination
15
+ (e.g. tex-svg) and equation numbering (e.g. AMS). [#368](https://github.com/mmistakes/so-simple-theme/pull/368)
16
+ - Sort taxonomies in `categories` and `tags` layouts by count then alphabetically. [#356](https://github.com/mmistakes/so-simple-theme/pull/356)
17
+
18
+ ### Added
19
+ - Add Turkish translations to `text.yml`. [#355](https://github.com/mmistakes/so-simple-theme/pull/355)
20
+
21
+ ### Fixed
22
+ - Fix security vulnerability in [minimist](https://github.com/substack/minimist) by updating from 1.2.0 to 1.2.5. [#374](https://github.com/mmistakes/so-simple-theme/pull/374)
23
+ - Fix contrast of pagination and copyright text in `default` and `dark` skins.
24
+ - Fix rake vulnerability in `.gemspec` file.
25
+ - Fix Bundler conflicts by removing version number from gemspec. [#362](https://github.com/mmistakes/so-simple-theme/pull/362)
26
+ - Fix `skin` paths in README. [#357](https://github.com/mmistakes/so-simple-theme/pull/357)
27
+
28
+ ## [3.2.0] - 10-29-2019
29
+
30
+ ### Added
31
+ - Add light and dark skins. [#347](https://github.com/mmistakes/so-simple-theme/pull/347)
32
+ - Add support for customizable skins. [#347](https://github.com/mmistakes/so-simple-theme/pull/347)
33
+
34
+ ### Fixed
35
+ - Fix security alerts and update [onchange](https://www.npmjs.com/package/onchange) development dependency in `package.json`. [#341](https://github.com/mmistakes/so-simple-theme/issues/341)
36
+
37
+ ## [3.1.3] - 08-20-2019
38
+
39
+ ### Changed
40
+ - Relax Jekyll dependency to allow for version 4.0.
41
+ - Make entire entries and archive items "clickable"
42
+ - Remove redundant "Read more..." links on each entry.
43
+
44
+ ### Added
45
+ - Add accent color variants for buttons and notices. [#335](https://github.com/mmistakes/so-simple-theme/pull/335)
46
+
47
+ ## [3.1.2] - 02-17-2019
48
+
49
+ ### Changed
50
+ - Update GitHub issue templates.
51
+ - Update NPM dependencies.
52
+
53
+ ### Added
54
+ - Add Italian translations to `text.yml`. [#318](https://github.com/mmistakes/so-simple-theme/pull/318)
55
+ - Add French translations to `text.yml`. [#316](https://github.com/mmistakes/so-simple-theme/pull/316)
56
+ - Add German translations to `text.yml`. [#311](https://github.com/mmistakes/so-simple-theme/pull/311)
57
+ - Add Spanish translations to `text.yml`. [#300](https://github.com/mmistakes/so-simple-theme/pull/300)
58
+
59
+ ### Fixed
60
+ - Fix security issue with seach-data.json by renaming to `.js` and use `relative_url` filter instead of `absolute_url` for all Lunr search scripts. [#323](https://github.com/mmistakes/so-simple-theme/issues/323)
61
+ - Remove duplicate `h1` headings for SEO benefit.
62
+ - Fix site title and description for page's with a hero image assigned with `page.image`. [#322](https://github.com/mmistakes/so-simple-theme/issues/322)
63
+ - Correct stylesheet path in documentation. [#309](https://github.com/mmistakes/so-simple-theme/pull/309)
64
+ - Clarify where to customize SCSS variables in `/assets/css/main.scss`. [#293](https://github.com/mmistakes/so-simple-theme/pull/293)
65
+
66
+ ## [3.1.1] - 05-03-2018
67
+
68
+ ### Changed
69
+ - Include creation of `navigation.yml` when "starting fresh". [#270](https://github.com/mmistakes/so-simple-theme/issues/270)
70
+ - Center hero image. [#289](https://github.com/mmistakes/so-simple-theme/pull/289)
71
+ - Update Font Awesome to version [`5.0.12`](https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md).
72
+ - Do not show `<footer>` in `_includes/entry.html` if there is no `site.read_time` or `entry.date` (typical of collection documents). [#283](https://github.com/mmistakes/so-simple-theme/pull/283)
73
+
74
+ ### Fixed
75
+ - Fix documentation links to sample `index.md` file. [#288](https://github.com/mmistakes/so-simple-theme/issues/288)
76
+ - Fix "Uncaught TypeError: Cannot read property 'addEventListener' of null" in `main.js` when navigation isn't defined.
77
+ - Fix search form from resetting when pressing "Enter". [#278](https://github.com/mmistakes/so-simple-theme/pull/278)
78
+ - Fix author links from not displaying correct when a single link is defined in `_config.yml`. [#280](https://github.com/mmistakes/so-simple-theme/issues/280)
79
+ - Fix search result excerpts that run together because of implied spaces. [#281](https://github.com/mmistakes/so-simple-theme/pull/281)
80
+ - Fix usage of `$site-logo-height` variable in `_global.scss`. [#284](https://github.com/mmistakes/so-simple-theme/pull/284)
81
+
82
+ ## [3.1.0] - 03-12-2018
83
+
84
+ ### Changed
85
+ - Set `autofocus` on search input.
86
+ - Update Font Awesome to version [`5.0.7`](https://github.com/FortAwesome/Font-Awesome/blob/master/CHANGELOG.md).
87
+
88
+ ### Added
89
+ - Add `posts_limit` override to `home` layout to set how many posts are shown (when not using pagination).
90
+ - Add `hidden: true` test post to verify it is excluded from home page pagination.
91
+ - Add note about disabling footer links with `footer_links: false`.
92
+ - Add support for sorting collections by `date` or `title`. [#272](https://github.com/mmistakes/so-simple-theme/pull/272)
93
+
94
+ ### Fixed
95
+ - Fix `remote_theme` name in README documentation. [#268](https://github.com/mmistakes/so-simple-theme/pull/268)
96
+
97
+ ## [3.0.1] - 02-06-2018
98
+
99
+ ### Fixed
100
+ - Fix Google Analytics conditional and variable name in include.
101
+
102
+ ## [3.0.0] - 02-06-2018
103
+
104
+ ### Changed
105
+ - Freshen up look and feel, rebuilding with modern CSS using grid and flexbox.
106
+ - Improve parity with Jekyll's default theme (Minima).
107
+ - Properly support `url` and `baseurl` by leveraging Jekyll's `absolute_url` and `relative_url` filters.
108
+ - Rename image front matter to those used by jekyll-seo-tag, jekyll-feed, and jekyll-sitemap (e.g., rename `image.feature` to `image.path`).
109
+ - Require full paths to image assets instead of forcing them into `/images/`.
110
+ - Update MathJax to `2.7.2`.
111
+ - Update Font Awesome to `5.0.6`.
112
+ - Update jQuery to `3.3.1`.
113
+ - Remove FitVid.JS script.
114
+ - Replace Magnific Popup with Lity.
115
+ - Improve list view.
116
+ - Replace JSON search with [Lunr](https://lunrjs.com/).
117
+ - Improve syntax highlighting styling.
118
+ - Improve README.md with full installation guide.
119
+ - Replace Grunt tasks with `npm run` scripts.
120
+ - Update GitHub issue labels.
121
+ - Migrate `gh-pages` branch into `/docs` folder on `master`.
122
+
123
+ ### Added
124
+ - Convert into a [Ruby gem-based theme](https://jekyllrb.com/docs/themes/#understanding-gem-based-themes).
125
+ - Add support for installing on GitHub Pages as a [remote theme](https://github.com/benbalter/jekyll-remote-theme).
126
+ - Add custom author links to post sidebar via `_config.yml`.
127
+ - Add custom footer links via `_config.yml`.
128
+ - Allow footer copyright to be changed via `_config.yml`.
129
+ - Assign Google Fonts to easily customize site's typography via `_config.yml`.
130
+ - Add hooks for injecting custom markup or content to `<head>` and `<footer>`.
131
+ - Add estimated reading time to pages.
132
+ - Add [data file](_data/text.yml) with all of the theme's text strings for localization.
133
+ - Add grid view.
134
+ - Add full document content, URL, and tags to search index for improved results.
135
+ - Add support for line numbers in syntax highlighted code blocks.
136
+ - Add toggle for showing or hiding excerpts with `show_excerpts`.
137
+ - Add `default` layout.
138
+ - Add `home` layout with [jekyll-paginate](https://jekyllrb.com/docs/pagination/) support.
139
+ - Add `posts` layout for showing all posts.
140
+ - Add `categories` layout for showing all posts grouped by category.
141
+ - Add `category` layout for showing posts of a specific category.
142
+ - Add `tags` layout for showing all posts grouped by tag.
143
+ - Add `tag` layout for showing posts of a specific tag.
144
+ - Add `collection` layout for showing documents of a specific collection.
145
+ - Add `search` layout.
146
+ - Add [Microformats](http://microformats.org/wiki/microformats2) markup to posts.
147
+ - Add responsive embed helper.
148
+ - Add table of contents helper.
149
+ - Add CHANGELOG.md file.
150
+ - Add migration guide for v2 to v3.
151
+ - Add stale bot for dealing with inactive issues and pull-requests.
152
+ - Add GitHub issue template.
153
+
154
+ ### Fixed
155
+ - Fix MathJax CDN path. [#241](https://github.com/mmistakes/so-simple-theme/pull/241)
156
+
157
+ ---
158
+
159
+ ## [2.3.4] - 09-14-2016
160
+
161
+ ### Changed
162
+ - Change `spin` to `adjust-hue`. [#201](https://github.com/mmistakes/so-simple-theme/issues/201)
163
+ - Improve readability of .scss files.
164
+
165
+ ## [2.3.3] - 09-12-2016
166
+
167
+ ### Changed
168
+ - Removed pro tip on applying for Twitter Cards.
169
+
170
+ ## [2.3.2] - 09-12-2016
171
+
172
+ ### Fixed
173
+ - Fix search.js interference with other forms. [#194](https://github.com/mmistakes/so-simple-theme/issues/194)
174
+ - Fix parenthesis Liquid error in `_layouts/post.html`. [#141](https://github.com/mmistakes/so-simple-theme/issues/141)
175
+
176
+ ## [2.3.1] - 06-01-2016
177
+
178
+ ### Changed
179
+ - Remove Octopress configuration from `_config.yml`.
180
+
181
+ ## [2.3.0] - 06-01-2016
182
+
183
+ ### Changed
184
+ - Update gems.
185
+ - Remove Octopress dependency.
186
+ - Replace `{% highlight %}` tags with GitHub Flavored Markdown backticks.
187
+ - Replace custom `feed.xml` with [jekyll-feed](https://github.com/jekyll/jekyll-feed) plugin.
188
+
189
+ ## [2.2.3] - 05-05-2016
190
+
191
+ ## [2.2.2] - 02-17-2016
192
+
193
+ ## [2.2.1] - 02-07-2016
194
+
195
+ ## [2.2.0] - 02-01-2016
196
+
197
+ ### Changed
198
+ - Minor updates to `_syntax.scss` styling and theme documentation.
199
+
200
+ ### Added
201
+ - Add compatibility with Jekyll 3.0.
202
+
203
+ ## [2.1.1] - 01-22-2015
204
+
205
+ ### Changed
206
+ - Improve comments in Sass partials and remove unused styles from Less versions.
207
+ - Enable Disqus comments globally instead of by post. [#94](https://github.com/mmistakes/so-simple-theme/issues/94)
208
+ - Improve Jekyll search feature by removing poorly performing input box overlay on mobile and touch devices [#88](https://github.com/mmistakes/so-simple-theme/issues/88.
209
+ - Move search form to dedicated page `/search/` and link to top navigation.
210
+
211
+ ### Added
212
+ - Add post excerpts to index pages (`/blog`, `/articles`, and the home page) if set in a YAML Front Matter.
213
+
214
+ ### Fixed
215
+ - Fix Disqus related bugs that were displaying `<noscript>` text on pages that had comments disabled.
216
+ - Fix typos in theme documentation.
217
+
218
+ ## [2.1.0] - 01-22-2015
219
+
220
+ ## [2.0.0] - 08-08-2014
221
+
222
+ ## [1.4.0] - 02-12-2014
223
+
224
+ ### Added
225
+ - Add rake tasks to create new posts or pages: `rake new_post` or `rake new_page`.
226
+
227
+ ## [1.3.2] - 01-02-2014
228
+
229
+ ### Added
230
+ - Add social share links to the sidebar. To enable, add `share: true` to a post's YAML Front Matter.
231
+
232
+ ## [1.3.1] - 09-12-2013
233
+
234
+ ### Changed
235
+ - Change order of navigation and browser upgrade includes. [#32](https://github.com/mmistakes/so-simple-theme/issues/32)
236
+
237
+ ### Added
238
+ - Add Grunt build script for easier theme development. Preprocesses Less into CSS, concatenates and minifies JavaScript, and optimizes all images.
239
+ - Add search by post title overlay using Christian Fei’s [Simple Jekyll jQuery plugin](https://github.com/christian-fei/Simple-Jekyll-Search).
240
+
241
+ ### Fixed
242
+ - Fix menu close action when clicking outside of it. [#29](https://github.com/mmistakes/so-simple-theme/issues/29)
243
+ - Fix jumpy navigation that was being absolutely positioned on click.
244
+
245
+ ## [1.3.0] - 09-11-2013
246
+
247
+ ## [1.2.11] - 08-16-2013
248
+
249
+ ### Added
250
+ - Add support for summary large image Twitter Cards.
251
+
252
+ ### Fixed
253
+ - Fix code syntax highlighting and added back Coderay styles for fenced code blocks.
254
+
255
+ ## [1.2.10] - 08-12-2013
256
+
257
+ ### Changed
258
+ - Update theme preview image.
259
+ - Update documentation.
260
+
261
+ ### Added
262
+ - Add link post type support by adding `link: http://url-you-want-to-link` to a post's YAML Front Matter.
263
+
264
+ ### Fixed
265
+ - Fix external links not being handled correctly in top navigation.
266
+ - Fix code syntax highlighting CSS.
267
+
268
+ ## [1.2.9] - 08-05-2013
269
+
270
+ ### Changed
271
+ - Refactor figure image classes to increase bottom padding when multiple rows of images are added to a figure element.
272
+
273
+ ### Added
274
+ - Add hover effects to linked images in a `figure` element.
275
+ - Add non-intrusive image credit (for feature images).
276
+
277
+ ### Fixed
278
+ - Fix Pygment CSS conflict with MathJax. [#20](https://github.com/mmistakes/so-simple-theme/issues/20)
279
+ - Fix RSS feed link in top navigation. [#21](https://github.com/mmistakes/so-simple-theme/issues/21)
280
+
281
+ ## [1.2.8] - 07-30-2013
282
+
283
+ ### Changed
284
+ - Adjust navigation and site logo animations in header.
285
+ - Adjust masthead feature images.
286
+
287
+ ## [1.2.7] - 07-29-2013
288
+
289
+ ### Fixed
290
+ - Fix typo in `variables.less`.
291
+
292
+ ## [1.2.6] - 07-26-2013
293
+
294
+ ### Changed
295
+ - Modify hover states of links in the top navigation bar.
296
+ - Lighten body text to a dark gray to improve readability and lessen eye strain.
297
+
298
+ ## [1.2.5] - 07-19-2013
299
+
300
+ ### Changed
301
+ - Increase space around top-navigation text.
302
+ - Make Disqus comments optional and only load when `disqus_shortname` is defined and a post is set to `comments: true`.
303
+
304
+ ### Fixed
305
+ - Fix post index `ul` element.
306
+
307
+ ## [1.2.4] - 07-18-2013
308
+
309
+ ## [1.2.3] - 07-17-2013
310
+
311
+ ## [1.2.1] - 07-12-2013
312
+
313
+ ### Changed
314
+ - Optimize `head` by loading CSS before AdobeEdge webfont JavaScript.
315
+
316
+ ## [1.2.0] - 07-10-2013
317
+
318
+ ### Changed
319
+ - Use [Google's enhance 404 widget](https://support.google.com/webmasters/answer/93641) to embed a search box in `404.md`.
320
+
321
+ ### Added
322
+ - Add a starter 404 page.
323
+
324
+ ## [1.1.0] - 07-03-2013
325
+
326
+ ### Added
327
+ - Add support for configurable external links in `_config.yml`.
328
+
329
+ ## [1.0.0] - 07-03-2013
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2013-2019 Michael Rose and contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,1148 @@
1
+ # [So Simple Jekyll Libre Theme][1]
2
+
3
+ This is a fork for the [So Simple Theme](https://github.com/mmistakes/so-simple-theme) that supports self-hosted
4
+ analytics, supports comments through privacy-preserving [Talkyard](https://www.talkyard.io) and removes almost all dependence
5
+ on javascript for the site (except for analytics and comments).
6
+
7
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat-square)](https://raw.githubusercontent.com/anandtrex/so-simple-libre-theme/master/LICENSE)
8
+ [![Jekyll](https://img.shields.io/badge/jekyll-%3E%3D%203.6-blue.svg?style=flat-square)](https://jekyllrb.com/)
9
+ [![Ruby gem](https://img.shields.io/gem/v/jekyll-theme-so-simple.svg?style=flat-square)](https://rubygems.org/gems/jekyll-theme-so-simple)
10
+
11
+ So Simple is a simple [Jekyll theme](https://jekyllrb.com/docs/themes/) for your words and pictures. Built to provide:
12
+
13
+ * A variety of layouts with clean and readable typography.
14
+ * [Microformats](http://microformats.org/wiki/microformats2) markup to make post content machine-readable and discoverable.
15
+ * [Talkyard](https://www.talkyard.io) Comments (can also be self-hosted)
16
+ * Self-hosted Analytics support via [Jekyll Analytics][jekyll-analytics].
17
+ * SEO best practices via [Jekyll SEO Tag][jekyll-seo-tag].
18
+ * Options to customize the theme and make it your own.
19
+ * Almost no javascript (except for analytics and comments).
20
+
21
+ :sparkles: **See what's new in the [CHANGELOG](CHANGELOG.md).**
22
+
23
+ [![So Simple live preview][2]][1]
24
+
25
+ ![So Simple layouts](screenshots.jpg)
26
+
27
+ [1]: https://anandtrex.github.io/so-simple-libre-theme/
28
+ [2]: screenshot.png "site preview"
29
+
30
+ ## Sample Pages
31
+
32
+ | Description | | |
33
+ | ----------- | -- | -- |
34
+ | A post with a large hero image. | [Preview][post-hero-preview] | [Source][post-hero-source] |
35
+ | A post with a variety of common HTML elements showing how the theme styles them. | [Preview][post-html-elements-preview] | [Source][post-html-elements-source] |
36
+ | Post displaying highlighted code. | [Preview][post-syntax-preview] | [Source][post-syntax-code] |
37
+ | A post displaying images with a variety of alignments. | [Preview][post-image-alignment-preview] | [Source][post-image-alignment-source] |
38
+ | All posts grouped by year. | [Preview][posts-year-preview] | [Source][posts-year-source] |
39
+ | All posts grouped by category. | [Preview][posts-category-preview] | [Source][posts-category-source] |
40
+ | All posts grouped by tag. | [Preview][posts-tag-preview] | [Source][posts-tag-source] |
41
+ | Category page. | [Preview][category-page-preview] | [Source][category-page-source] |
42
+ | Listing of documents in grid view. | [Preview][grid-view-preview] | [Source][grid-view-source] |
43
+
44
+ [post-hero-preview]: https://anandtrex.github.io/so-simple-libre-theme/layout/layout-hero-image/
45
+ [post-hero-source]: docs/_posts/2012-03-14-layout-hero-image.md
46
+ [post-html-elements-preview]: https://anandtrex.github.io/so-simple-libre-theme/markup/markup-html-elements-and-formatting/
47
+ [post-html-elements-source]: docs/_posts/2013-01-11-markup-html-elements-and-formatting.md
48
+ [post-syntax-preview]: https://anandtrex.github.io/so-simple-libre-theme/markup-syntax-highlighting/
49
+ [post-syntax-code]: docs/_posts/2013-08-16-markup-syntax-highlighting.md
50
+ [post-image-alignment-preview]: https://anandtrex.github.io/so-simple-libre-theme/markup/markup-image-alignment/
51
+ [post-image-alignment-source]: docs/_posts/2013-01-10-markup-image-alignment.md
52
+ [posts-year-preview]: https://anandtrex.github.io/so-simple-libre-theme/posts/
53
+ [posts-year-source]: docs/posts.md
54
+ [posts-category-preview]: https://anandtrex.github.io/so-simple-libre-theme/categories/
55
+ [posts-category-source]: docs/categories.md
56
+ [posts-tag-preview]: https://anandtrex.github.io/so-simple-libre-theme/tags/
57
+ [posts-tag-source]: docs/tags.md
58
+ [category-page-preview]: https://anandtrex.github.io/so-simple-libre-theme/categories/edge-case/
59
+ [category-page-source]: docs/edge-case.md
60
+ [grid-view-preview]: https://anandtrex.github.io/so-simple-libre-theme/recipes/
61
+ [grid-view-source]: docs/recipes.md
62
+
63
+ Additional [sample posts](https://anandtrex.github.io/so-simple-libre-theme/posts/) can be view on the demo site. Source files for these (and the entire demo site) can be found in [`/docs`](docs) folder.
64
+
65
+ ## Table of Contents
66
+
67
+ 1. [Installation](#installation)
68
+ 1. [Ruby Gem Method](#ruby-gem-method)
69
+ 2. [GitHub Pages Method](#github-pages-method)
70
+ 1. [Remove the Unnecessary](#remove-the-unnecessary)
71
+ 2. [Upgrading](#upgrading)
72
+ 1. [Ruby Gem](#ruby-gem)
73
+ 2. [Remote Theme](#remote-theme)
74
+ 3. [Use Git](#use-git)
75
+ 4. [Update Files Manually](#update-files-manually)
76
+ 3. [Structure](#structure)
77
+ 1. [Starting Fresh](#starting-fresh)
78
+ 2. [Starting from `jekyll new`](#starting-from-jekyll-new)
79
+ 4. [Configuring](#configuring)
80
+ 1. [Site Skin](#site-skin)
81
+ 2. [Site Locale](#site-locale)
82
+ 3. [Site URL](#site-url)
83
+ 4. [Site Base URL](#site-base-url)
84
+ 5. [Date Format](#date-format)
85
+ 6. [Reading Time](#reading-time)
86
+ 7. [Mathematics](#mathematics)
87
+ 8. [Pagination](#pagination)
88
+ 9. [Search](#search)
89
+ 10. [Taxonomy Pages](#taxonomy-pages)
90
+ 11. [Comments (via Talkyard)](#comments-via-talkyard)
91
+ 12. [Analytics](#analytics)
92
+ 13. [Other](#other)
93
+ 5. [Layouts](#layouts)
94
+ 1. [`layout: default`](#layout-default)
95
+ 2. [`layout: post`](#layout-post)
96
+ 3. [`layout: page`](#layout-page)
97
+ 4. [`layout: home`](#layout-home)
98
+ 5. [`layout: posts`](#layout-posts)
99
+ 6. [`layout: categories`](#layout-categories)
100
+ 7. [`layout: tags`](#layout-tags)
101
+ 8. [`layout: collection`](#layout-collection)
102
+ 9. [`layout: category`](#layout-category)
103
+ 10. [`layout: tag`](#layout-tag)
104
+ 11. [`layout: search`](#layout-search)
105
+ 6. [Images](#images)
106
+ 7. [Theme Text](#theme-text)
107
+ 8. [Navigation](#navigation)
108
+ 9. [Author](#author)
109
+ 10. [Footer](#footer)
110
+ 1. [Footer Links](#footer-links)
111
+ 2. [Copyright Text](#copyright-text)
112
+ 11. [Helpers](#helpers)
113
+ 1. [Responsive Embed](#responsive-embed)
114
+ 2. [Table of Contents](#table-of-contents)
115
+ 12. [Customization](#customization)
116
+ 1. [Overriding Includes and Layouts](#overriding-includes-and-layouts)
117
+ 2. [Customizing Sass (SCSS)](#customizing-sass-scss)
118
+ 3. [Customizing JavaScript](#customizing-javascript)
119
+ 13. [Font Awesome Icons](#font-awesome-icons)
120
+ 14. [Development](#development)
121
+ 1. [JavaScript Build Script](#javascript-build-script)
122
+ 15. [Contributing](#contributing)
123
+ 16. [Credits](#credits)
124
+ 17. [License](#license)
125
+
126
+ ## Installation
127
+
128
+ If you're running Jekyll v3.5+ and self-hosting you can quickly install the theme as a Ruby gem. If you're hosting with [**GitHub Pages**](https://pages.github.com/) you can install as a [remote theme](https://github.com/benbalter/jekyll-remote-theme) or directly copy all of the theme files (see [structure](#structure) below) into your project.
129
+
130
+ ### Ruby Gem Method
131
+
132
+ 1. Add this line to your Jekyll site's `Gemfile` (or [create one](example/Gemfile)):
133
+
134
+ ```ruby
135
+ gem "jekyll-theme-so-simple"
136
+ ```
137
+
138
+ 2. Add this line to your Jekyll site's `_config.yml` file:
139
+
140
+ ```yaml
141
+ theme: jekyll-theme-so-simple
142
+ ```
143
+
144
+ 3. Then run [Bundler](http://bundler.io/) to install the theme gem and dependencies:
145
+
146
+ ```terminal
147
+ bundle install
148
+ ```
149
+
150
+ ### GitHub Pages Method
151
+
152
+ GitHub Pages has added [full support](https://github.com/blog/2464-use-any-theme-with-github-pages) for any GitHub-hosted theme.
153
+
154
+ 1. Replace `gem "jekyll"` with:
155
+
156
+ ```ruby
157
+ gem "github-pages", group: :jekyll_plugins
158
+ ```
159
+
160
+ 2. Run `bundle update` and verify that all gems install properly.
161
+
162
+ 3. Add `remote_theme: "anandtrex/so-simple-libre-theme@4.0.0"` to your
163
+ `_config.yml` file. Remove any other `theme:` or `remote_theme:` entries.
164
+
165
+ ---
166
+
167
+ **Note:** Your Jekyll site should be viewable immediately at <http://USERNAME.github.io>. If it's not, you can force a rebuild by pushing empty commits to GitHub (see below for more details).
168
+
169
+ 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 this works, check [GitHub's documentation](https://help.github.com/articles/user-organization-and-project-pages/).
170
+
171
+ #### Remove the Unnecessary
172
+
173
+ If you forked or downloaded the [`so-simple-libre-theme` repo](https://github.com/anandtrex/so-simple-libre-theme) you can safely remove the following files and folders:
174
+
175
+ * `.github`
176
+ * `docs`
177
+ * `example`
178
+ * `.editorconfig`
179
+ * `.gitattributes`
180
+ * `banner.js`
181
+ * `CHANGELOG.md`
182
+ * `Gemfile`
183
+ * `jekyll-theme-so-simple.gemspec`
184
+ * `package.json`
185
+ * `Rakefile`
186
+ * `README.md`
187
+ * `screenshot.png`
188
+
189
+ ## Upgrading
190
+
191
+ If you're using the Ruby Gem or remote theme versions of So Simple, upgrading is fairly painless.
192
+
193
+ To check which version you are currently using, view the source of your built site and you should something similar to:
194
+
195
+ ```
196
+ <!--
197
+ So Simple Jekyll Theme 3.0.0
198
+ Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
199
+ Free for personal and commercial use under the MIT license
200
+ https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
201
+ -->
202
+ ```
203
+
204
+ This will be at the top of every `.html` file, `/assets/css/main.css`, and `/assets/js/main.js`.
205
+
206
+ ### Ruby Gem
207
+
208
+ Simply run `bundle update` if you're using Bundler (have a `Gemfile`) or `gem update jekyll-theme-so-simple` if you're not.
209
+
210
+ ### Remote Theme
211
+
212
+ Verify you have the [latest version](https://github.com/anandtrex/so-simple-libre-theme/releases) assigned in `_config.yml`
213
+
214
+ ```
215
+ remote_theme: "anandtrex/so-simple-libre-theme@4.0.0"
216
+ ```
217
+
218
+ Note: If `@x.x.x` is omitted the theme's current `master` branch will be used.
219
+ It is advised to ["lock" `remote_theme`](https://github.com/benbalter/jekyll-remote-theme#declaring-your-theme) at a specific version to avoid introducing breaking changes to your site.
220
+
221
+ The next step requires rebuilding your [GitHub Pages](https://pages.github.com/) site so it can pull down the latest theme updates. This can be achieved by pushing up a commit to your GitHub repo.
222
+
223
+ An empty commit will get the job done too if you don't have anything to push at the moment:
224
+
225
+ ```terminal
226
+ git commit --allow-empty -m "Force rebuild of site"
227
+ ```
228
+
229
+ ### Use Git
230
+
231
+ If you want to get the most out of the Jekyll + GitHub Pages workflow, then you'll need to utilize Git. To pull down theme updates manually you must first ensure there's an upstream remote. If you forked the theme's repo then you're likely good to go.
232
+
233
+ To double check, run `git remote -v` and verify that you can fetch from `origin https://github.com/anandtrex/so-simple-libre-theme.git`.
234
+
235
+ To add it you can do the following:
236
+
237
+ ```terminal
238
+ git remote add upstream https://github.com/anandtrex/so-simple-libre-theme.git
239
+ ```
240
+
241
+ #### Pull Down Updates
242
+
243
+ Now you can pull any commits made to theme's `master` branch with:
244
+
245
+ ```terminal
246
+ git pull upstream master
247
+ ```
248
+
249
+ Depending on the amount of customizations you've made after forking, there's likely to be merge conflicts. Work through any conflicting files Git flags, staging the changes you wish to keep, and then commit them.
250
+
251
+ ### Update Files Manually
252
+
253
+ Another way of dealing with updates is [downloading the theme](https://github.com/anandtrex/so-simple-libre-theme/archive/master.zip)
254
+ --- replacing your layouts, includes, and assets with the newer ones manually. To be sure that you don't miss any
255
+ changes review the theme's [commit history](https://github.com/anandtrex/so-simple-libre-theme/commits/master) to see what has changed.
256
+
257
+ Here's a quick checklist of the important folders/files you'll want to be mindful of:
258
+
259
+ | Name | |
260
+ | ---------------------- | ------------------------------------------------------------------------------ |
261
+ | `_layouts` | Replace all. Apply edits if you customized any layouts. |
262
+ | `_includes` | Replace all. Apply edits if you customized any includes. |
263
+ | `assets` | Replace all. Apply edits if you customized stylesheets or scripts. |
264
+ | `_sass` | Replace all. Apply edits if you customized Sass partials. |
265
+ | `_data/navigation.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
266
+ | `_data/text.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
267
+ | `_config.yml` | Safe to keep. Verify that there were no major structural changes or additions. |
268
+
269
+ ---
270
+
271
+ **Note:** If you're not seeing the latest version, be sure to flush browser and CDN caches. Depending on your hosting environment older versions of `/assets/css/main.css`, `/assets/js/main.min.js`, or `*.html` files may be cached.
272
+
273
+ ## Structure
274
+
275
+ Layouts, includes, Sass partials, and data files are all placed in their default locations. Stylesheets and scripts can be found in `assets`, and a few development related files in the project's root directory.
276
+
277
+ **Please note:** If you installed So Simple via the Ruby Gem or remote theme methods, theme files found in `/_layouts`, `/_includes`, `/_sass`, and `/assets` will be missing from your project. This is normal as they are bundled with the [`jekyll-theme-so-simple`](https://rubygems.org/gems/jekyll-theme-so-simple) gem.
278
+
279
+ ```
280
+ ├── _data # data files
281
+ | ├── navigation.yml # navigation bar links
282
+ | └── text.yml # theme text
283
+ ├── _includes # theme includes
284
+ ├── _layouts # theme layouts (see below for usage)
285
+ ├── _sass # Sass partials
286
+ ├── assets
287
+ | ├── css
288
+ | | └── main.scss
289
+ | └── js
290
+ | └── main.min.js
291
+ ├── _config.yml # sample configuration
292
+ └── index.md # sample home page (recent posts/not paginated)
293
+ ```
294
+
295
+ ### Starting Fresh
296
+
297
+ After creating a `Gemfile` and installing the theme you'll need to add and edit the following files:
298
+
299
+ * [`_config.yml`](_config.yml)
300
+ * [`/_data/navigation.yml`](_data/navigation.yml)
301
+ * [`/_data/text.yml`](_data/text.yml)
302
+ * [`index.md`](index.md)
303
+
304
+ **Note:** Consult the [**pagination**](#pagination) documentation below for instructions on how to enable it on the home page.
305
+
306
+ ### Starting from `jekyll new`
307
+
308
+ Using the `jekyll new` command will get you up and running the quickest.
309
+
310
+ Edit your `Gemfile` and `_config.yml` files following the [installation guide](#installation) above and [configuration guide](#configuring) below, then create `_data/text.yml` as instructed earlier.
311
+
312
+ ## Configuring
313
+
314
+ Configuration of site-wide elements (`locale`, `title`, `description`, `url`, `logo`, `author`, etc.) happens in your project's `_config.yml`. See the [example configuration](example/_config.yml) in this repo for additional reference.
315
+
316
+ | Name | Description | Example |
317
+ | ------------- | ------------------------------------------------------------------------ | ----------------------------------- |
318
+ | `locale` | Primary language for the site. | `"en-us"` |
319
+ | `title` | Site's title. | `"My Awesome Site"` |
320
+ | `description` | A short description. | `"This is my site, it is awesome."` |
321
+ | `baseurl` | Used to test the website under the same base url it will be deployed to. | `/my-base-path` |
322
+ | `url` | The full URL to your site. | `"https://your-site.com"` |
323
+ | `logo` | Path to a site-wide logo used in masthead. | `/images/your-logo.png` |
324
+
325
+ ### Site Skin
326
+
327
+ Three skins (default, light, and dark) are available to change the color palette of the theme.
328
+
329
+ | `default.css` | `light.css` | `dark.css` |
330
+ | --- | --- | --- |
331
+ | ![default skin](https://anandtrex.github.io/so-simple-libre-theme/images/default-skin.png) | ![light skin](https://anandtrex.github.io/so-simple-libre-theme/images/light-skin.png) | ![dark skin](https://anandtrex.github.io/so-simple-libre-theme/images/dark-skin.png) |
332
+
333
+ ```yaml
334
+ skin: "/assets/css/skins/default.css"
335
+ skin: "/assets/css/skins/light.css"
336
+ skin: "/assets/css/skins/dark.css"
337
+ ```
338
+
339
+ To use a custom skin other than the ones provided:
340
+
341
+ 1. Copy and rename [`/assets/css/skins/default.scss`](https://github.com/anandtrex/so-simple-libre-theme/blob/master/assets/css/skins/default.scss) to your local repo.
342
+ 2. Override and customize Sass variables as you see fit.
343
+ 3. Update the `skin` path in `_config.yml` to reference this new skin `.css` file.
344
+
345
+ ### Site Locale
346
+
347
+ **`site.locale`** is used to declare the primary language for each web page within the site.
348
+
349
+ _Example:_ locale: `"en-US"` sets the lang attribute for the site to the United States flavor of English, while `en-GB` would be for the United Kingdom style of English. Country codes are optional and the shorter variation `locale: "en"` is also acceptable. To find your language and country codes check this [reference table](<https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx>).
350
+
351
+ Properly setting the locale is important for associating localized text found in the text data file.
352
+
353
+ **Note:** The theme defaults to text in English (`en`, `en-US`, `en-GB`). If you change locale in `_config.yml` to something else be sure to add the corresponding locale key and translated text to [`_data/text.yml`](_data/text.yml).
354
+
355
+ ### Site URL
356
+
357
+ The base hostname and protocol for your site. If you're hosting with GitHub Pages this will be something like `url: "https://github.io.mmistakes"` or `url: "https://your-site.com"` if you have a custom domain name.
358
+
359
+ GitHub Pages now [forces `https://` for new sites](https://help.github.com/articles/securing-your-github-pages-site-with-https/), so be mindful of that when setting your URL to avoid mixed-content warnings.
360
+
361
+ **Note:** Jekyll overrides the value of `url` with `http://localhost:4000` when running `jekyll serve` locally in development. If you want to avoid this behavior set `JEKYLL_ENV=production` to [force the environment](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time) to production.
362
+
363
+ ### Site Base URL
364
+
365
+ This option causes all kinds of confusion in the Jekyll community. If you're not hosting your site as a [GitHub Project Page](https://help.github.com/articles/user-organization-and-project-pages/) or in a subfolder (e.g., `/blog`), then don't mess with it.
366
+
367
+ In the case of the **So Simple Libre** demo site it's hosted on GitHub at <https://anandtrex.github.io/so-simple-libre-theme>.
368
+ To correctly set this base path I'd use `url: "https://anandtrex.github.io"` and `baseurl: "/so-simple-libre-theme"`.
369
+
370
+ For more information on how to properly use `site.url` and `site.baseurl` as intended by the Jekyll maintainers, check [Parker Moore's post on the subject](https://byparker.com/blog/2014/clearing-up-confusion-around-baseurl/).
371
+
372
+ **Note:** When using `baseurl` remember to include it as part of your link and asset paths in your content. Values of `url:` and `baseurl: "/blog"` would make your local site visible at <http://localhost:4000/blog> and not <http://localhost:4000>. You can either prepend all your asset and internal link paths with `{{ site.baseurl }}` or use Jekyll's `relative_url`.
373
+
374
+ To use the example values above the following image path of `{{ '/images/my-image.jpg' | relative_url }}` would output correctly as `http://localhost:4000/blog/images/my-image.jpg`.
375
+
376
+ Without the `relative_url` filter that asset path would be missing `/blog` and you'd have a broken image on your page.
377
+
378
+ ### Date Format
379
+
380
+ You can change the default date format by specifying `date_format` in `_config.yml`. It accepts any of the standard [Liquid date formats](http://shopify.github.io/liquid/filters/date/).
381
+
382
+ For example the default value of `"%B %-d, %Y"` could be changed like so:
383
+
384
+ ```yaml
385
+ date_format: "%Y-%m-%d"
386
+ ```
387
+
388
+ ### Reading Time
389
+
390
+ Enable estimated reading time snippets site-wide with `read_time: true`. **`200`** has been set as the default words per minute value — which can be changed via `words_per_minute` in your `_config.yml` file.
391
+
392
+ ```yaml
393
+ read_time: true
394
+ words_per_minute: 200
395
+ ```
396
+
397
+ ### Mathematics
398
+
399
+ Enable [**MathJax**](https://www.mathjax.org) (a JavaScript display engine for mathematics) site-wide with
400
+
401
+ ``` yaml
402
+ mathjax:
403
+ enable: true
404
+ ```
405
+
406
+ The `combo` option lets you to choose a [MathJax component
407
+ combination](http://docs.mathjax.org/en/latest/web/components/combined.html)--the
408
+ default is "tex-svg." And, the `tags` option lets you control
409
+ equation numbering--choices are "ams" (default), "all", and "none."
410
+
411
+ Sample configuration:
412
+
413
+ ``` yaml
414
+ mathjax:
415
+ enable: true # MathJax equations, e.g. true, false (default)
416
+ combo: "tex-svg" # "tex-svg" (default), "tex-mml-chtml", etc.
417
+ tags: "ams" # "none", "ams" (default), "all"
418
+ ```
419
+
420
+ ### Fonts
421
+
422
+ ```scss
423
+ $serif-font-family: "Lora", serif;
424
+ $sans-serif-font-family: "Source Sans Pro", sans-serif;
425
+ $monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier,
426
+ monospace;
427
+
428
+ $base-font-family: $sans-serif-font-family;
429
+ $headline-font-family: $sans-serif-font-family;
430
+ $title-font-family: $serif-font-family;
431
+ $description-font-family: $serif-font-family;
432
+ $meta-font-family: $serif-font-family;
433
+ ```
434
+
435
+ See [stylesheet documentation](#customizing-sass-scss) below for more information on overriding the theme's default variables.
436
+
437
+ ### Pagination
438
+
439
+ Break up the main listing of posts on the home page across multiple pages by [enabling pagination](http://jekyllrb.com/docs/pagination/).
440
+
441
+ 1. Include the [`jekyll-paginate`][jekyll-paginate] plugin in your `Gemfile`.
442
+
443
+ ```ruby
444
+ group :jekyll_plugins do
445
+ gem "jekyll-paginate"
446
+ end
447
+ ```
448
+
449
+ 2. Add `jekyll-paginate` to the `plugins` array (previously `gems`) in your `_config.yml` file and the following pagination settings:
450
+
451
+ ```yaml
452
+ paginate: 10 # amount of posts to show per page
453
+ paginate_path: /page:num/
454
+ ```
455
+
456
+ 3. Create `index.html` (or rename `index.md`) in the root of your project and add the following front matter:
457
+
458
+ ```yaml
459
+ layout: home
460
+ paginate: true
461
+ ```
462
+
463
+ ### Search
464
+
465
+ To index the full content of your documents for use in a [search page](#layout-search), set `search_full_content` to `true` in `_config.yml`:
466
+
467
+ ```yaml
468
+ search_full_content: true
469
+ ```
470
+
471
+ **Note:** Large amounts of posts will increase the size of the search index, impacting page load performance. Setting `search_full_content` to `false` (the default) restricts indexing to the first 50 words of body content.
472
+
473
+ ### Taxonomy Pages
474
+
475
+ By default, category and tags added to a post are not linked to taxonomy archive pages. To enable this behavior and link to pages with posts grouped by category or tag, add the following:
476
+
477
+ ```yaml
478
+ category_archive_path: "/categories/#"
479
+ tag_archive_path: "/tags/#"
480
+ ```
481
+
482
+ These paths should mimic the permalinks used for your [**categories**](#layout-categories) and [**tags archive**](#layout-tags) pages. The `#` at the end is necessary to target the correct taxonomy section on the pages.
483
+
484
+ For example if you were to create `categories.md` with the following front matter:
485
+
486
+ ```yaml
487
+ title: Categories Archive
488
+ layout: categories
489
+ permalink: /foo/
490
+ ```
491
+
492
+ You'd need to change `category_archive_path` to `"/foo/#` for category links to function properly.
493
+
494
+ **Note:** You can create dedicated category and tag pages manually with [`layout: category`](#layout-category) and [`layout: tag`](#layout-tag). Or use plugins like [**jekyll-archives**][jekyll-archives] or [**jekyll-paginate-v2**](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-AUTOPAGES.md) to generate them automatically.
495
+
496
+ ### Comments (via Talkyard)
497
+
498
+ If you have a [**Talkyard**](https://talkyard.io/) account, you can show a comments section below each post.
499
+
500
+ To enable Talkyard comments, add your [Talkyard server URL](https://www.talkyard.io/blog-comments) to your project's `_config.yml` file:
501
+
502
+ ```yaml
503
+ talkyard_server_url: https://site-name.talkyard.net
504
+ ```
505
+
506
+ Comments only appear in production when built with the following [environment value](http://jekyllrb.com/docs/configuration/#specifying-a-jekyll-environment-at-build-time): `JEKYLL_ENV=production` to avoid polluting your Disqus account with `localhost` content.
507
+
508
+ If you don't want to display comments for a particular post you can disable them by adding `comments: false` to that post's front matter.
509
+
510
+ ### Analytics
511
+
512
+ Enable analytics support using [jekyll-analytics][jekyll-analytics]. See example in `_config.yml`.
513
+
514
+ The analytics tracking script will only appear in production when using the following environment value: `JEKYLL_ENV=production`.
515
+
516
+ ### Other
517
+
518
+ For more configuration options be sure to consult the documentation for:
519
+ [**jekyll-seo-tag**][jekyll-seo-tag], [**jekyll-feed**][jekyll-feed],
520
+ [**jekyll-paginate**][jekyll-paginate], and [**jekyll-sitemap**][jekyll-sitemap].
521
+
522
+ ---
523
+
524
+ ## Layouts
525
+
526
+ This theme provides the following layouts, which you can use by setting the `layout` [front matter](https://jekyllrb.com/docs/frontmatter/) on each page, like so:
527
+
528
+ ```yaml
529
+ ---
530
+ layout: name
531
+ ---
532
+ ```
533
+
534
+ ### `layout: default`
535
+
536
+ This layout handles all of the basic page scaffolding placing the page content between the masthead and footer elements. All other layouts inherit this one and provide additional styling and features inside of the `{{ content }}` block.
537
+
538
+ ### `layout: post`
539
+
540
+ This layout accommodates the following front matter:
541
+
542
+ | Name | Type | Description |
543
+ | ---- | ----- | ---------- |
544
+ | `image` | String | Path to a large image associated with the post. Also used for [OpenGraph](http://ogp.me/), [Twitter Cards](https://dev.twitter.com/cards), and site feed thumbnail if enabled. [Suggested image sizes](#images). |
545
+ | `image.path` | String | Same as above. Used when a `thumbnail` or `caption` needs to be assigned to the `image` object as well. |
546
+ | `image.caption` | String | Describes the image or provides credit. Markdown is allowed. |
547
+ | `author` | Object or string | Specify a post's author `name`, `picture`, `twitter`, `links`, etc. |
548
+ | `comments` | Boolean | Disable comments with `comments: false`. |
549
+ | `share` | Boolean | Add social share links to a post with `share: true`. |
550
+
551
+ **Post image example:**
552
+
553
+ ```yaml
554
+ image:
555
+ path: /images/post-image-lg.jpg
556
+ thumbnail: /images/post-image-th.jpg
557
+ caption: "Photo credit [Unsplash](https://unsplash.com/)"
558
+ ```
559
+
560
+ **Note:** `image.feature` front matter has been deprecated, to fully support [jekyll-seo-tag][jekyll-seo-tag]. If you are not using `thumbnail` or `caption` the post image can be assigned more concisely as `image: /images/your-post-image.jpg`.
561
+
562
+ **Post author example:**
563
+
564
+ ```yaml
565
+ # post specific author data if different from what is set in _config.yml
566
+ author:
567
+ name: John Doe
568
+ picture: /images/john-doe.jpg
569
+ twitter: johndoe
570
+ ```
571
+
572
+ **Note:** Author information can centralized in `_data/authors.yml` by doing following in the document's front matter:
573
+
574
+ ```yaml
575
+ author: johndoe
576
+ ```
577
+
578
+ With the corresponding author key in `_data/authors.yml`:
579
+
580
+ ```yaml
581
+ johndoe:
582
+ name: John Doe
583
+ picture: /images/john-doe.jpg
584
+ twitter: johndoe
585
+ ```
586
+
587
+ **Note:** `author.picture` recommended size is `150 x 150` pixels.
588
+
589
+ #### Author Links
590
+
591
+ To define what links appear in the author sidebar use the `authors.links` key in either `_config.yml` or `/_data/authors.yml`.
592
+
593
+ | Name | Description |
594
+ | ------- | ---------------------------------------------------------------------------------------------------------------- |
595
+ | `title` | Describes the link. Not visible, used for accessibility purposes. |
596
+ | `url` | URL the link points to. |
597
+ | `icon` | Corresponds with a [Font Awesome icon](https://fontawesome.com/icons?d=gallery) e.g., `fab fa-twitter-square`. |
598
+
599
+ **Example:**
600
+
601
+ ```yaml
602
+ author:
603
+ links:
604
+ - title: Twitter
605
+ url: https://twitter.com/username
606
+ icon: fab fa-twitter-square
607
+ - title: Instagram
608
+ url: https://instagram.com/username
609
+ icon: fab fa-instagram
610
+ - title: GitHub
611
+ url: https://github.com/username
612
+ icon: fab fa-github-square
613
+ ```
614
+
615
+ **Note:** To disable author links completely use use:
616
+
617
+ ```yaml
618
+ author:
619
+ links: false
620
+ ```
621
+
622
+ ### `layout: page`
623
+
624
+ Visually this layout looks and acts similar `layout: post`, with the following
625
+ differences.
626
+
627
+ * Author sidebar and page meta (published date, categories, and tags) are ommitted.
628
+ * Page is less wide due to omitted sidebar.
629
+ * Disqus comments are omitted.
630
+ * Next/Previous post navigation links omitted.
631
+
632
+ The page layout forms the base for several other layouts like [`home`](#layout-home), [`posts`](#layout-posts), [`categories`](#layout-categories), [`tags`](#layout-tags), [`collection`](#layout-collection), [`category`](#layout-category), [`tag`](#layout-tag), and [`search`](#layout-search).
633
+
634
+ ### `layout: home`
635
+
636
+ This layout accommodates the same front matter as `layout: page`, with the
637
+ addition of the following:
638
+
639
+ ```yaml
640
+ paginate: true # enables pagination loop, see section above for additional setup
641
+ entries_layout: # list (default), grid
642
+ ```
643
+
644
+ When pagination is not enabled the page defaults to showing the latest 10 posts. To change the amount of posts shown, assign a limit value by adding the following to the page's front matter.
645
+
646
+ ```yaml
647
+ posts_limit: 5
648
+ ```
649
+
650
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
651
+
652
+ ### `layout: posts`
653
+
654
+ This layout displays all posts grouped by the year they were published. It accommodates the same front matter as `layout: page`.
655
+
656
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
657
+
658
+ ### `layout: categories`
659
+
660
+ This layout displays all posts grouped category. It accommodates the same front matter as `layout: page`.
661
+
662
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
663
+
664
+ ### `layout: tags`
665
+
666
+ This layout displays all posts grouped by tag. It accommodates the same front matter as `layout: page`.
667
+
668
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
669
+
670
+ ### `layout: collection`
671
+
672
+ This layout displays all documents grouped by a specific collection. It accommodates the same front matter as `layout: page` with the addition of the following:
673
+
674
+ ```yaml
675
+ collection: # collection name
676
+ entries_layout: # list (default), grid
677
+ show_excerpts: # true (default), false
678
+ sort_by: # date (default) title
679
+ sort_order: # forward (default), reverse
680
+ ```
681
+
682
+ To create a page showing all documents in the `recipes` collection you'd create `recipes.md` in the root of your project and add this front matter:
683
+
684
+ ```yaml
685
+ title: Recipes
686
+ layout: collection
687
+ permalink: /recipes/
688
+ collection: recipes
689
+ ```
690
+
691
+ By default, documents are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter. If you want to sort the collection by title add `sort_by: title`. If you want reverse sorting, add `sort_order: reverse`. If you are simply looking for a list that shows recipe titles (no excerpts), add `show_excerpts: false`.
692
+
693
+ ### `layout: category`
694
+
695
+ This layout displays all posts grouped by a specific category. It accommodates the same front matter as `layout: page` with the addition of the following:
696
+
697
+ ```yaml
698
+ taxonomy: # category name
699
+ entries_layout: # list (default), grid
700
+ ```
701
+
702
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
703
+
704
+ To create a page showing all posts assigned to the category `foo` you'd create `foo.md` in the root of your project and add this front matter:
705
+
706
+ ```yaml
707
+ title: Foo
708
+ layout: category
709
+ permalink: /categories/foo/
710
+ taxonomy: foo
711
+ ```
712
+
713
+ ### `layout: tag`
714
+
715
+ This layout displays all posts grouped by a specific tag. It accommodates the same front matter as `layout: page` with the addition of the following:
716
+
717
+ ```yaml
718
+ taxonomy: # tag name
719
+ entries_layout: # list (default), grid
720
+ ```
721
+
722
+ By default, posts are shown in a list view. To change to a grid view add `entries_layout: grid` to the page's front matter.
723
+
724
+ To create a page showing all posts assigned to the tag `foo bar` you'd create `foo-bar.md` in the root of your project and add this front matter:
725
+
726
+ ```yaml
727
+ title: Foo Bar
728
+ layout: tag
729
+ permalink: /tags/foo-bar/
730
+ taxonomy: foo bar
731
+ ```
732
+
733
+ ### `layout: search`
734
+
735
+ This layout displays a search form and displays related pages based on the query.
736
+
737
+ Page content index: `title`, `excerpt`, `content` (when enabled), `categories`, `tags`, and `url`.
738
+
739
+ If you would like to exclude specific pages/posts from the search index set the search flag to `false` in their front matter.
740
+
741
+ ```yaml
742
+ search: false
743
+ ```
744
+
745
+ To index the full content of your documents set `search_full_content` to `true` in `_config.yml`:
746
+
747
+ ```yaml
748
+ search_full_content: true
749
+ ```
750
+
751
+ **Note:** Large amounts of posts will increase the size of the search index, impacting page load performance. Setting `search_full_content` to `false` (the default) restricts indexing to the first 50 words of body content.
752
+
753
+ ## Images
754
+
755
+ Suggested image sizes in pixels are as follows:
756
+
757
+ | Image | Description | Size |
758
+ | ----- | ----------- | ---- |
759
+ | `site.logo` | Site-wide logo used in masthead. | `200 x 200` |
760
+ | `page.image.path` | Large full-width document image. | Tall images will push content down the page. `1600 x 600` is a good middle-ground size to aim for. |
761
+ | `page.image` | Short-hand for `page.image.path` when used alone (without `thumbnail`, `caption`, or other variables). | Same as `page.image.path` |
762
+ | `page.image.thumbnail` | Small document image used in grid view. | `400 x 200` |
763
+ | `author.picture` | Author picture in post sidebar. | `150 x 150` |
764
+
765
+ ## Theme Text
766
+
767
+ To change text found throughout the theme, copy the following
768
+ [`/_data/text.yml`](_data/text.yml) file and customize as necessary.
769
+
770
+ When adding new texts be sure the keys match these [language/country codes](<https://msdn.microsoft.com/en-us/library/ee825488(v=cs.20).aspx>), that may be used for [`site.locale`](#site-locale).
771
+
772
+ ## Navigation
773
+
774
+ To define what pages are linked in the top navigation:
775
+
776
+ 1. Create a [`/_data/navigation.yml`](_data/navigation.yml) file.
777
+
778
+ 2. Add pages in the order you'd like them to appear:
779
+
780
+ ```yaml
781
+ - title: Posts
782
+ url: /posts/
783
+ - title: Categories
784
+ url: /categories/
785
+ - title: External Page
786
+ url: https://whatever-site.com/page.html
787
+ - title: Search
788
+ url: /search/
789
+ ```
790
+
791
+ **Note:** Long titles or many links may cause the navigation bar to break into multiple lines, especially on smaller screens. Keep this in mind as you develop your site's primary navigation.
792
+
793
+ ## Author
794
+
795
+ Author information is used as meta data for post "by lines" and propagates the `creator` field of Twitter summary cards with the following front matter in `_config.yml`:
796
+
797
+ ```yaml
798
+ author:
799
+ name: John Doe
800
+ twitter: johndoetwitter
801
+ picture: /images/johndoe.png
802
+ ```
803
+
804
+ Site-wide author information can be overridden in a document's front matter in the same way:
805
+
806
+ ```yaml
807
+ author:
808
+ name: Jane Doe
809
+ twitter: janedoetwitter
810
+ picture: /images/janedoe.png
811
+ ```
812
+
813
+ Or by specifying a corresponding key in the document's front matter, that exists in `site.data.authors`. E.g., you have the following in the document's front matter:
814
+
815
+ ```yaml
816
+ author: megaman
817
+ ```
818
+
819
+ And you have the following in `_data/authors.yml`:
820
+
821
+ ```yaml
822
+ megaman:
823
+ name: Mega Man
824
+ twitter: megamantwitter
825
+ picture: /images/megaman.png
826
+
827
+ drlight:
828
+ name: Dr. Light
829
+ twitter: drlighttwitter
830
+ picture: /images/drlight.png
831
+ ```
832
+
833
+ Currently `author.picture` is only used in `layout: post`. Recommended size is `150 x 150` pixels.
834
+
835
+ ## Footer
836
+
837
+ The footer links and copyright text can both be customized.
838
+
839
+ ### Footer Links
840
+
841
+ Footer links are set in `_config.yml` under the `footer_links` key.
842
+
843
+ | Name | Description |
844
+ | ------- | ---------------------------------------------------------------------------------------------------------------- |
845
+ | `title` | Describes the link. Not visible, used for accessibility purposes. |
846
+ | `url` | URL the link points to. |
847
+ | `icon` | Corresponds with a [Font Awesome 5 icon](https://fontawesome.com/icons?d=gallery) e.g., `fab fa-twitter-square`. |
848
+
849
+ **Examples:**
850
+
851
+ ```yaml
852
+ footer_links:
853
+ - title: Twitter
854
+ url: https://twitter.com/username
855
+ icon: fab fa-twitter-square
856
+ - title: GitHub
857
+ url: https://github.com/mmistakes
858
+ icon: fab fa-github-square
859
+ - title: Feed
860
+ url: atom.xml
861
+ icon: fas fa-rss-square
862
+ ```
863
+
864
+ **Note:** To disable footer links completely use `footer_links: false`.
865
+
866
+ ### Copyright Text
867
+
868
+ By default the copyright inserts the current year, [`site.title`](#site-title), and the words `"Powered by Jekyll & So Simple."` To change this add `copyright` to your `_config.yml` like so (Markdown is allowed):
869
+
870
+ ```yaml
871
+ copyright: "This site is made with <3 by *me, myself, and I*."
872
+ ```
873
+
874
+ ## Helpers
875
+
876
+ You can think of these Jekyll helpers as shortcodes. Since GitHub Pages doesn't allow most plugins --- [custom tags](https://jekyllrb.com/docs/plugins/#tags) are out. Instead the theme leverages [**includes**](https://jekyllrb.com/docs/templates/#includes) to do something similar.
877
+
878
+ ### Responsive Embed
879
+
880
+ Embed a video from YouTube/Vimeo or any other `iframe` content that responsively sizes to fit the width of its parent.
881
+
882
+ | Parameter | Required | Description |
883
+ | --------- | -------- | ----------- |
884
+ | `url` | Yes | Video or iframe's URL e.g., `https://www.youtube.com/watch?v=-PVofD2A9t8` |
885
+ | `ratio` | Optional | Ratio of the video or iframe content. `21:9`, `16:9`, `4:3`, `1:1`. If a ratio is not assigned `16:9` is used. |
886
+
887
+ **Example:**
888
+
889
+ ```html
890
+ {% include responsive-embed url="https://www.youtube.com/watch?v=-PVofD2A9t8" ratio="16:9" %}
891
+ ```
892
+
893
+ ### Table of Contents
894
+
895
+ To include an [auto-generated table of contents](https://kramdown.gettalong.org/converter/html.html#toc) for posts and pages, add the following helper where you'd like it to appear.
896
+
897
+ ```html
898
+ {% include toc %}
899
+ ```
900
+
901
+ ## Customization
902
+
903
+ When installing as a **Ruby gem** or **remote theme** the core theme files (`_layouts`, `_includes`, `_sass`, `assets`, etc.) will be absent from your project.
904
+
905
+ The default structure, style, and scripts of this theme can be overridden and customized in the following two ways:
906
+
907
+ ### Overriding Includes and Layouts
908
+
909
+ Theme files can be [overridden](http://jekyllrb.com/docs/themes/#overriding-theme-defaults) by placing a file with the same name into your project's `_includes` or `_layouts` directory. For instance:
910
+
911
+ * To add another social sharing button to [`_includes/social-share.html`](_includes/social-share.html), create an `_includes` directory in your project, copy `_includes/social-share.html` from So Simple's gem folder to `<your_project>/_includes` and edit that file.
912
+
913
+ **ProTip:** to locate the theme's files on your computer run `bundle show jekyll-theme-so-simple`. This returns the location of the gem-based theme files.
914
+
915
+ The theme comes with two files to help inject custom markup and content into predefined locations.
916
+
917
+ | | Description |
918
+ | --- | ----------- |
919
+ | [`_includes/head-custom.html`](_includes/head-custom.html) | Inserted inside the `<head>` element for adding metadata, favicons, etc. |
920
+ | [`_includes/footer-custom.html`](_includes/footer-custom.html) | Inserted inside the `<footer>` element before site scripts and copyright information. |
921
+
922
+ ### Customizing Sass (SCSS)
923
+
924
+ To override the default [Sass](http://sass-lang.com/guide) (located in theme's
925
+ `_sass` directory), do one of the following:
926
+
927
+ 1. Copy directly from the So Simple gem
928
+
929
+ * Go to your local So Simple gem installation directory (run
930
+ `bundle show jekyll-theme-so-simple` to get the path to it).
931
+ * Copy the contents of `/assets/css/main.scss` from there to
932
+ `<your_project>`.
933
+ * Customize what you want inside `<your_project>/assets/css/main.scss`.
934
+
935
+ 2. Copy from this repo.
936
+
937
+ * Copy the contents of [assets/css/main.scss](assets/css/main.scss) to `<your_project>`.
938
+ * Customize what you want inside `<your_project/assets/css/main.scss`.
939
+
940
+ **Note:** To customize the actual Sass partials bundled
941
+ in the gem, you will need to copy the complete contents of the `_sass` directory to `<your_project>`. Due to the way Jekyll currently imports these files it's all or nothing. Overriding a single Sass partial (or two) won't work like `_includes` and `_layouts`.
942
+
943
+ To make basic tweaks to theme's style, Sass variables can be overridden by adding to `<your_project>/assets/css/main.scss`. For instance, to change the accent color used throughout the theme add the following before all `@import` lines:
944
+
945
+ ```scss
946
+ $accent-color: tomato;
947
+ ```
948
+
949
+ ### Customizing JavaScript
950
+
951
+ To override the default JavaScript bundled in the theme, do one of the following:
952
+
953
+ 1. Copy directly from the So Simple gem
954
+
955
+ * Go to your local So Simple gem installation directory (run
956
+ `bundle show jekyll-theme-so-simple` to get the path to it).
957
+ * Copy the contents of `/assets/js/main.js` from there to
958
+ `<your_project>`.
959
+ * Customize what you want inside `<your_project>/assets/js/main.js`.
960
+
961
+ 2. Copy from this repo.
962
+
963
+ * Copy the contents of [`/assets/js/main.js`](assets/js/main.js)
964
+ to `<your_project>`.
965
+ * Customize what you want inside `<your_project>/assets/js/main.js`.
966
+
967
+ The theme's [`/assets/js/main.min.js`](assets/js/main.min.js) file is built from jQuery plugins and other scripts found in [`/assets/js/`](assets/js).
968
+
969
+ ```
970
+ ├── assets
971
+ | ├── js
972
+ | | ├── lunr # Lunr search plugin
973
+ | | | ├── lunr.xx.js # Lunr language plugins
974
+ | | | ├── ...
975
+ | | | ├── lunr.min.js
976
+ | | | └── lunr.stemmer.support.min.js
977
+ | | ├── plugins
978
+ | | | ├── jquery.smooth-scroll.min.js # make same-page links scroll smoothly
979
+ | | | ├── lity.min.js # responsive lightbox
980
+ | | | └── table-of-contents.js # table of contents toggle
981
+ | | ├── main.js # jQuery plugin settings and other scripts
982
+ | | ├── main.min.js # concatenated and minified scripts
983
+ | | ├── search-data.json # search index used by Lunr
984
+ ```
985
+
986
+ To modify or add your own scripts, include them in `assets/js/main.js` and then rebuild using `npm run build:js`. [See below for more details](#javascript-build-script).
987
+
988
+ If you add additional scripts to `/assets/js/plugins/` and would like them concatenated with the others, be sure to update the `uglify` script in [`package.json`](package.json). Same goes for scripts that you remove.
989
+
990
+ You can also add scripts to the `<head>` or closing `</body>` elements by adding paths to the following arrays in `_config.yml`.
991
+
992
+ **Example:**
993
+
994
+ ```yaml
995
+ head_scripts:
996
+ - https://code.jquery.com/jquery-3.2.1.min.js
997
+ - /assets/js/your-custom-head-script.js
998
+ footer_scripts:
999
+ - /assets/js/your-custom-footer-script.js
1000
+ ```
1001
+
1002
+ **Note:** If you assign paths to `footer_scripts` the theme's `/assets/js/main.min.js` file will be deactivated. This script includes plugins and other scripts that will cease to function unless you specifically add them to the `footer_scripts` array.
1003
+
1004
+ ## Font Awesome Icons
1005
+
1006
+ The theme utilizes the [**Font Awesome** SVG with JS](https://fontawesome.com/) version for iconography. Prominent locations these icons appear are in the author sidebar and footer links.
1007
+
1008
+ ---
1009
+
1010
+ ## Development
1011
+
1012
+ To set up your environment to develop this theme:
1013
+
1014
+ 1. Clone this repo
1015
+ 2. `cd` into `/example` and run `bundle install`.
1016
+
1017
+ To test the theme locally as you make changes to it:
1018
+
1019
+ 1. `cd` into the root folder of the repo (e.g. `jekyll-theme-so-simple`).
1020
+ 2. Run `bundle exec rake preview` and open your browser to
1021
+ `http://localhost:4000/example/`.
1022
+
1023
+ This starts a Jekyll server using the theme's files and contents of the `example/` directory. As modifications are made, refresh your browser to see any changes.
1024
+
1025
+ ### JavaScript Build Script
1026
+
1027
+ In an effort to reduce dependencies a set of [npm scripts](https://css-tricks.com/why-npm-scripts/) are used to build `main.min.js` instead of task runners like [Gulp](http://gulpjs.com/) or [Grunt](http://gruntjs.com/). If those tools are more your style then by all means use them instead :wink:.
1028
+
1029
+ To get started:
1030
+
1031
+ 1. Install Node.js.
1032
+ 2. `cd` to the root of your project.
1033
+ 3. Install all of the dependencies by running npm install.
1034
+
1035
+ **Note:** If you upgraded from a previous version of the theme be sure you copied over [`package.json`](package.json) prior to running `npm install`. You may also need to remove your `node_modules` directory as well.
1036
+
1037
+ If all goes well, executing `npm run build:js` will compress/concatenate `main.js` and all plugin scripts into `/assets/js/main.min.js`.
1038
+
1039
+ ## Contributing
1040
+
1041
+ Found a typo in the documentation? Requesting a feature or
1042
+ [bug fix][issues]? Search through the open and closed issues before [submitting an issue][new-issue] to avoid duplication.
1043
+
1044
+ [Pull requests][using-pull-requests] are also appreciated. If this is your first time, it may be helpful to read up on the [GitHub Flow][github-flow].
1045
+
1046
+ If your contribution adds or changes the theme's behavior, make sure to update the documentation and/or sample content. Documentation lives in README.md while sample posts, pages, and collections are in the [`docs`](docs) and [`example`](example) folders.
1047
+
1048
+ [issues]: https://github.com/mmistakes/so-simple-theme/issues
1049
+ [new-issue]: https://github.com/mmistakes/so-simple-theme/issues/new
1050
+ [using-pull-requests]: https://help.github.com/articles/using-pull-requests/
1051
+ [github-flow]: https://guides.github.com/introduction/flow/
1052
+
1053
+ ### Pull Requests
1054
+
1055
+ When submitting a pull request:
1056
+
1057
+ 1. Clone the repo.
1058
+ 2. Create a branch off of `master` and give it a meaningful name (e.g.
1059
+ `my-awesome-new-feature`).
1060
+ 3. Open a pull request on GitHub and describe what problem it solves.
1061
+
1062
+ ---
1063
+
1064
+ ## Credits
1065
+
1066
+ ### Creator
1067
+
1068
+ **Michael Rose**
1069
+
1070
+ * <https://mademistakes.com>
1071
+ * <https://twitter.com/mmistakes>
1072
+ * <https://github.com/mmistakes>
1073
+
1074
+ ### Icons + Demo Images:
1075
+
1076
+ * [Font Awesome](https://fontawesome.com)
1077
+ * [WeGraphics](http://wegraphics.net/downloads/free-ultimate-blurred-background-pack/)
1078
+ * [Unsplash](https://unsplash.com/)
1079
+
1080
+ ### Other:
1081
+
1082
+ * [Jekyll](http://jekyllrb.com/)
1083
+ * [Breakpoint](http://breakpoint-sass.com/)
1084
+ * [jQuery](http://jquery.com/)
1085
+ * [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll)
1086
+ * [Lity](https://sorgalla.com/lity/)
1087
+ * [Lunr](http://lunrjs.com/)
1088
+
1089
+ ---
1090
+
1091
+ ## License
1092
+
1093
+ The MIT License (MIT)
1094
+
1095
+ Copyright (c) 2013-2019 Michael Rose and contributors
1096
+
1097
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1098
+ of this software and associated documentation files (the "Software"), to deal
1099
+ in the Software without restriction, including without limitation the rights
1100
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1101
+ copies of the Software, and to permit persons to whom the Software is
1102
+ furnished to do so, subject to the following conditions:
1103
+
1104
+ The above copyright notice and this permission notice shall be included in all
1105
+ copies or substantial portions of the Software.
1106
+
1107
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1108
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1109
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1110
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1111
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1112
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1113
+ SOFTWARE.
1114
+
1115
+ So Simple incorporates [Font Awesome](http://fontawesome.io/),
1116
+ Copyright (c) 2017 Dave Gandy.
1117
+ Font Awesome is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL)
1118
+ and [MIT License](http://opensource.org/licenses/MIT).
1119
+
1120
+ So Simple incorporates photographs from [Unsplash](https://unsplash.com).
1121
+
1122
+ So Simple incorporates photographs from [WeGraphics](http://wegraphics.net/downloads/free-ultimate-blurred-background-pack/)
1123
+
1124
+ So Simple incorporates [Breakpoint](http://breakpoint-sass.com/).
1125
+ Breakpoint is distributed under the terms of the [MIT/GPL Licenses](http://opensource.org/licenses/MIT).
1126
+
1127
+ So Simple incorporates [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll),
1128
+ Copyright (c) 2017 Karl Swedberg.
1129
+ jQuery Smooth Scroll is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1130
+
1131
+ So Simple incorporates [Lunr](http://lunrjs.com),
1132
+ Copyright (c) 2017 Oliver Nightingale.
1133
+ Lunr is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1134
+
1135
+ So Simple incorporates [Lity](http://sorgalla.com/lity/),
1136
+ Copyright (c) 2015-2016, Jan Sorgalla.
1137
+ Lity is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
1138
+
1139
+ So Simple incorporates [Table of Contents Toggle](https://github.com/smithtimmytim/brightlycolored.org),
1140
+ Copyright (c) 2017 Timothy B. Smith.
1141
+ Table of Contents Toggle is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
1142
+
1143
+ [jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
1144
+ [jekyll-analytics]: https://github.com/hendrikschneider/jekyll-analytics
1145
+ [jekyll-feed]: https://github.com/jekyll/jekyll-feed
1146
+ [jekyll-paginate]: https://github.com/jekyll/jekyll-paginate
1147
+ [jekyll-sitemap]: https://github.com/jekyll/jekyll-sitemap
1148
+ [jekyll-archives]: https://github.com/jekyll/jekyll-archives