jekyll-theme-so-simple 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 8ea899af72b56ffdfec2c063bffbed2ffb9835cb
4
- data.tar.gz: 4dd8298d66c55ff8556eec3cbd9fec0aed731837
2
+ SHA256:
3
+ metadata.gz: 6c36e1e87abeb97efb2a4cab977975ab55e0c00f335c7745b85dbbe8821d28ec
4
+ data.tar.gz: ab4cf9e627dd4009f05c0d04ed3f534621bb3afe3db36c90d3d1e772fcf39c58
5
5
  SHA512:
6
- metadata.gz: b2af61f7d391ec35bb33f671b5136cd3da782eca9f8ee4bc91adc21adb34c7243eeb780d44239a99cf4ac01c18874fcc4fe429606a50841f3bc269b539a416ad
7
- data.tar.gz: 45562390e466f227cf31929abae675b3133c857c469c1f94e48a60f1cc720cdf812c19e0e4c1bfd8c17bcec05290209c0127cb8994c56f7447564c40dfd0e058
6
+ metadata.gz: 977be176998992b338a8b00936e15ec9febc535b6d1f8ee00cde41aa250563467e987e5e29d7c91a97d799ebfceb593a85004289cf7b6ddca10ceee716ee694d
7
+ data.tar.gz: ed8e7d06a5522db51f2382a6b1631e1c8ded4acd2c2582113e0d599ae4c3d2599c09cf2afadfd227e37836a32de37c04033110231874f485448e9d5cfa93ff67
data/CHANGELOG.md CHANGED
@@ -5,7 +5,26 @@ 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
- ## [Unreleased]
8
+ ## [3.1.2] - 02-17-2018
9
+
10
+ ### Changed
11
+ - Update GitHub issue templates.
12
+ - Update NPM dependencies.
13
+
14
+ ### Added
15
+ - Add Italian translations to `text.yml`. [#318](https://github.com/mmistakes/so-simple-theme/pull/318)
16
+ - Add French translations to `text.yml`. [#316](https://github.com/mmistakes/so-simple-theme/pull/316)
17
+ - Add German translations to `text.yml`. [#311](https://github.com/mmistakes/so-simple-theme/pull/311)
18
+ - Add Spanish translations to `text.yml`. [#300](https://github.com/mmistakes/so-simple-theme/pull/300)
19
+
20
+ ### Fixed
21
+ - 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)
22
+ - Remove duplicate `h1` headings for SEO benefit.
23
+ - 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)
24
+ - Correct stylesheet path in documentation. [#309](https://github.com/mmistakes/so-simple-theme/pull/309)
25
+ - Clarify where to customize SCSS variables in `/assets/css/main.scss`. [#293](https://github.com/mmistakes/so-simple-theme/pull/293)
26
+
27
+ ## [3.1.1] - 05-03-2018
9
28
 
10
29
  ### Changed
11
30
  - Include creation of `navigation.yml` when "starting fresh". [#270](https://github.com/mmistakes/so-simple-theme/issues/270)
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2013-2018 Michael Rose and contributors
3
+ Copyright (c) 2013-2019 Michael Rose and contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,31 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
23
- So Simple incorporates [Font Awesome](http://fontawesome.io/),
24
- Copyright (c) 2017 Dave Gandy.
25
- Font Awesome is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL)
26
- and [MIT License](http://opensource.org/licenses/MIT).
27
-
28
- So Simple incorporates photographs from [Unsplash](https://unsplash.com).
29
-
30
- So Simple incorporates photographs from [WeGraphics](http://wegraphics.net/downloads/free-ultimate-blurred-background-pack/)
31
-
32
- So Simple incorporates [Breakpoint](http://breakpoint-sass.com/).
33
- Breakpoint is distributed under the terms of the [MIT/GPL Licenses](http://opensource.org/licenses/MIT).
34
-
35
- So Simple incorporates [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll),
36
- Copyright (c) 2017 Karl Swedberg.
37
- jQuery Smooth Scroll is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
38
-
39
- So Simple incorporates [Lunr](http://lunrjs.com),
40
- Copyright (c) 2017 Oliver Nightingale.
41
- Lunr is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
42
-
43
- So Simple incorporates [Lity](http://sorgalla.com/lity/),
44
- Copyright (c) 2015-2016, Jan Sorgalla.
45
- Lity is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
46
-
47
- So Simple incorporates [Table of Contents Toggle](https://github.com/smithtimmytim/brightlycolored.org),
48
- Copyright (c) 2017 Timothy B. Smith.
49
- Table of Contents Toggle is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
data/README.md CHANGED
@@ -13,6 +13,10 @@ So Simple is a simple [Jekyll theme](https://jekyllrb.com/docs/themes/) for your
13
13
  * SEO best practices via [Jekyll SEO Tag][jekyll-seo-tag].
14
14
  * Options to customize the theme and make it your own.
15
15
 
16
+ **If you enjoy this theme, please consider [supporting me](https://www.paypal.me/mmistakes) for developing and maintaining it.**
17
+
18
+ [![Support via PayPal](https://cdn.rawgit.com/twolfson/paypal-github-button/1.0.0/dist/button.svg)](https://www.paypal.me/mmistakes)
19
+
16
20
  :sparkles: **See what's new in the [CHANGELOG](CHANGELOG.md).**
17
21
 
18
22
  :blue_book: **[v2 documentation](README-OLD.md)**.
@@ -741,7 +745,7 @@ Suggested image sizes in pixels are as follows:
741
745
  ## Theme Text
742
746
 
743
747
  To change text found throughout the theme, copy the following
744
- [`/_data/theme.yml`](_data/text.yml) file and customize as necessary.
748
+ [`/_data/text.yml`](_data/text.yml) file and customize as necessary.
745
749
 
746
750
  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).
747
751
 
@@ -1031,17 +1035,17 @@ To override the default [Sass](http://sass-lang.com/guide) (located in theme's
1031
1035
  `bundle show jekyll-theme-so-simple` to get the path to it).
1032
1036
  * Copy the contents of `/assets/css/main.scss` from there to
1033
1037
  `<your_project>`.
1034
- * Customize what you want inside `<your_project>/assets/stylesheets/main.scss`.
1038
+ * Customize what you want inside `<your_project>/assets/css/main.scss`.
1035
1039
 
1036
1040
  2. Copy from this repo.
1037
1041
 
1038
1042
  * Copy the contents of [assets/css/main.scss](assets/css/main.scss) to `<your_project>`.
1039
- * Customize what you want inside `<your_project/assets/stylesheets/main.scss`.
1043
+ * Customize what you want inside `<your_project/assets/css/main.scss`.
1040
1044
 
1041
1045
  **Note:** To customize the actual Sass partials bundled
1042
1046
  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`.
1043
1047
 
1044
- To make basic tweaks to theme's style, Sass variables can be overridden by adding to `<your_project>/assets/stylesheets/main.scss`. For instance, to change the accent color used throughout the theme add the following after all `@import` lines:
1048
+ 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:
1045
1049
 
1046
1050
  ```scss
1047
1051
  $accent-color: tomato;
@@ -1191,7 +1195,55 @@ When submitting a pull request:
1191
1195
 
1192
1196
  ## License
1193
1197
 
1194
- The theme is available as open source under the terms of the [MIT License](LICENSE).
1198
+ The MIT License (MIT)
1199
+
1200
+ Copyright (c) 2013-2019 Michael Rose and contributors
1201
+
1202
+ Permission is hereby granted, free of charge, to any person obtaining a copy
1203
+ of this software and associated documentation files (the "Software"), to deal
1204
+ in the Software without restriction, including without limitation the rights
1205
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1206
+ copies of the Software, and to permit persons to whom the Software is
1207
+ furnished to do so, subject to the following conditions:
1208
+
1209
+ The above copyright notice and this permission notice shall be included in all
1210
+ copies or substantial portions of the Software.
1211
+
1212
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1213
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1214
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1215
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1216
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1217
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1218
+ SOFTWARE.
1219
+
1220
+ So Simple incorporates [Font Awesome](http://fontawesome.io/),
1221
+ Copyright (c) 2017 Dave Gandy.
1222
+ Font Awesome is distributed under the terms of the [SIL OFL 1.1](http://scripts.sil.org/OFL)
1223
+ and [MIT License](http://opensource.org/licenses/MIT).
1224
+
1225
+ So Simple incorporates photographs from [Unsplash](https://unsplash.com).
1226
+
1227
+ So Simple incorporates photographs from [WeGraphics](http://wegraphics.net/downloads/free-ultimate-blurred-background-pack/)
1228
+
1229
+ So Simple incorporates [Breakpoint](http://breakpoint-sass.com/).
1230
+ Breakpoint is distributed under the terms of the [MIT/GPL Licenses](http://opensource.org/licenses/MIT).
1231
+
1232
+ So Simple incorporates [jQuery Smooth Scroll](https://github.com/kswedberg/jquery-smooth-scroll),
1233
+ Copyright (c) 2017 Karl Swedberg.
1234
+ jQuery Smooth Scroll is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1235
+
1236
+ So Simple incorporates [Lunr](http://lunrjs.com),
1237
+ Copyright (c) 2017 Oliver Nightingale.
1238
+ Lunr is distributed under the terms of the [MIT License](http://opensource.org/licenses/MIT).
1239
+
1240
+ So Simple incorporates [Lity](http://sorgalla.com/lity/),
1241
+ Copyright (c) 2015-2016, Jan Sorgalla.
1242
+ Lity is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
1243
+
1244
+ So Simple incorporates [Table of Contents Toggle](https://github.com/smithtimmytim/brightlycolored.org),
1245
+ Copyright (c) 2017 Timothy B. Smith.
1246
+ Table of Contents Toggle is distributed under the terms of the MIT License](http://opensource.org/licenses/MIT).
1195
1247
 
1196
1248
  [jekyll-seo-tag]: https://github.com/jekyll/jekyll-seo-tag
1197
1249
  [jekyll-feed]: https://github.com/jekyll/jekyll-feed
data/_data/text.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  # Theme text and labels
2
2
 
3
+
3
4
  # English (default)
4
5
  # -----------------
5
6
  en: &DEFAULT_EN
@@ -34,3 +35,130 @@ en-GB:
34
35
  <<: *DEFAULT_EN
35
36
  en-AU:
36
37
  <<: *DEFAULT_EN
38
+
39
+
40
+ # German
41
+ # -----------------
42
+ de: &DEFAULT_DE
43
+ skip_links: "Links überspringen"
44
+ skip_primary_nav: "Zu Hauptmenü springen"
45
+ skip_content: "Zu Inhalt springen"
46
+ skip_footer: "Zu Fußzeile springen"
47
+ menu_label: "Menü"
48
+ by: "von"
49
+ min_read: "min read"
50
+ read_more: "Mehr lesen&hellip;"
51
+ categories: "Kategorien"
52
+ tags: "Tags"
53
+ pages_categorized: "Seiten kategorisiert als"
54
+ pages_tagged: "Seiten, getaggt als"
55
+ table_of_contents: "Inhaltsverzeichnis"
56
+ results_found: "Ergebnis(se) gefunden"
57
+ share: "Teilen"
58
+ tweet: "Tweet"
59
+ next: "Vor"
60
+ previous: "Zurück"
61
+ newer: "Neuer"
62
+ older: "Älter"
63
+ back_to_top: "Zurück nach Oben"
64
+ search_placeholder_text: "Suchtext eingeben..."
65
+ powered_by: "Unterstützt von"
66
+ de-DE:
67
+ <<: *DEFAULT_DE
68
+ de-AU:
69
+ <<: *DEFAULT_DE
70
+ de-CH:
71
+ <<: *DEFAULT_DE
72
+
73
+
74
+ # Spanish
75
+ # -------
76
+ es: &DEFAULT_ES
77
+ skip_links: "Saltar enlaces"
78
+ skip_primary_nav: "Saltar a la navegación primaria"
79
+ skip_content: "Saltar al contenido"
80
+ skip_footer: "Saltar al pie de página"
81
+ menu_label: "Menú"
82
+ by: "por"
83
+ min_read: "minuto(s) de lectura"
84
+ read_more: "Leer más&hellip;"
85
+ categories: "Categorías"
86
+ tags: "Etiquetas"
87
+ pages_categorized: "Páginas archivadas bajo"
88
+ pages_tagged: "Páginas etiquetadas"
89
+ table_of_contents: "Tabla de contenidos"
90
+ results_found: "Resultado(s) encontrado(s)"
91
+ share: "Compartir"
92
+ tweet: "Tweet"
93
+ next: "Siguiente"
94
+ previous: "Anterior"
95
+ newer: "Nuevo"
96
+ older: "Antiguo"
97
+ back_to_top: "Volver arriba"
98
+ search_placeholder_text: "Ingrese su término de búsqueda ..."
99
+ powered_by: "Energizado por"
100
+ es-ES:
101
+ <<: *DEFAULT_ES
102
+ es-CL:
103
+ <<: *DEFAULT_ES
104
+
105
+
106
+ # French
107
+ # -----------------
108
+ fr: &DEFAULT_FR
109
+ skip_links: "Sauter les liens"
110
+ skip_primary_nav: "Aller à la navigation principale"
111
+ skip_content: "Aller au contenu"
112
+ skip_footer: "Aller au pied de page"
113
+ menu_label: "Menu"
114
+ by: "par"
115
+ min_read: "min de lecture"
116
+ read_more: "En savoir plus&hellip;"
117
+ categories: "Catégories"
118
+ tags: "Tags"
119
+ pages_categorized: "Pages catégorisées dans"
120
+ pages_tagged: "Pages étiquettées"
121
+ table_of_contents: "Table des matières"
122
+ results_found: "Résultat(s) trouvé(s)"
123
+ share: "Partager"
124
+ tweet: "Tweet"
125
+ next: "Suivant"
126
+ previous: "Précédent"
127
+ newer: "Plus récent"
128
+ older: "Plus ancier"
129
+ back_to_top: "Retour en haut"
130
+ search_placeholder_text: "Entrer le terme à rechercher..."
131
+ powered_by: "Propulsé par"
132
+ fr-FR:
133
+ <<: *DEFAULT_FR
134
+ fr-BE:
135
+ <<: *DEFAULT_FR
136
+ fr-CA:
137
+ <<: *DEFAULT_FR
138
+
139
+ it: &DEFAULT_IT
140
+ skip_links: "Salta links"
141
+ skip_primary_nav: "Salta alla navigazione primaria"
142
+ skip_content: "Vai al contenuto"
143
+ skip_footer: "Vai al footer"
144
+ menu_label: "Menu"
145
+ by: "di"
146
+ min_read: "min. per leggere"
147
+ read_more: "Leggi di più&hellip;"
148
+ categories: "Categorie"
149
+ tags: "Tags"
150
+ pages_categorized: "Pagine categorizzate come"
151
+ pages_tagged: "Pagine con tag"
152
+ table_of_contents: "Indice dei Contenuti"
153
+ results_found: "Risultati della ricerca"
154
+ share: "Condividi"
155
+ tweet: "Tweet"
156
+ next: "Avanti"
157
+ previous: "Indietro"
158
+ newer: "Nuovi"
159
+ older: "Vecchi"
160
+ back_to_top: "Torna in cima"
161
+ search_placeholder_text: "Inserisci una parola da cercare..."
162
+ powered_by: "Generato da"
163
+ it-IT:
164
+ <<: *DEFAULT_IT
@@ -35,11 +35,11 @@
35
35
  {%- else -%}
36
36
  {%- assign lang = "en" -%}
37
37
  {%- endcase -%}
38
- <script src="{{ '/assets/js/lunr/lunr.min.js' | absolute_url }}"></script>
39
- <script src="{{ '/assets/js/search-data.json' | absolute_url }}"></script>
38
+ <script src="{{ '/assets/js/lunr/lunr.min.js' | relative_url }}"></script>
39
+ <script src="{{ '/assets/js/search-data.js' | relative_url }}"></script>
40
40
  {%- unless lang == "en" -%}
41
- <script src="{{ '/assets/js/lunr/lunr.stemmer.support.min.js' | absolute_url }}"></script>
42
- <script src="{{ '/assets/js/lunr/lunr.' | append: lang | append: '.min.js' | absolute_url }}"></script>
41
+ <script src="{{ '/assets/js/lunr/lunr.stemmer.support.min.js' | relative_url }}"></script>
42
+ <script src="{{ '/assets/js/lunr/lunr.' | append: lang | append: '.min.js' | relative_url }}"></script>
43
43
  {%- endunless %}
44
44
  <script>
45
45
  var idx = lunr(function () {
@@ -5,8 +5,13 @@
5
5
  <img src="{{ site.logo | relative_url }}" class="site-logo-img animated fadeInDown" alt="{{ site.title }}">
6
6
  </a>
7
7
  {% endif %}
8
- {% unless page.image.path %}
9
- <h1 class="site-title animated fadeIn"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
8
+ {% assign page_image = page.image.path | default: page.image %}
9
+ {% unless page_image %}
10
+ {% if page.url == '/' %}
11
+ <h1 class="site-title animated fadeIn"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></h1>
12
+ {% else %}
13
+ <div class="site-title animated fadeIn"><a href="{{ '/' | relative_url }}">{{ site.title }}</a></div>
14
+ {% endif %}
10
15
  <p class="site-description animated fadeIn" itemprop="description">{{ site.description }}</p>
11
16
  {% endunless %}
12
17
  </div>
@@ -1,7 +1,7 @@
1
1
  <!DOCTYPE html>
2
2
  <!--
3
- So Simple Jekyll Theme 3.1.1
4
- Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
3
+ So Simple Jekyll Theme 3.1.2
4
+ Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
5
5
  Free for personal and commercial use under the MIT license
6
6
  https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
7
7
  -->
data/_sass/so-simple.scss CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * So Simple Jekyll Theme 3.1.1
3
- * Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
2
+ * So Simple Jekyll Theme 3.1.2
3
+ * Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
4
4
  * Free for personal and commercial use under the MIT license
5
5
  * https://github.com/mmistakes/so-simple-theme/blob/master/LICENSE
6
6
  */
@@ -84,6 +84,7 @@
84
84
  margin: 0.5em 0 0;
85
85
  padding: 0;
86
86
  @include fluid-type($min-vw, $max-vw, $h2-min, $h2-max);
87
+ font-weight: 700;
87
88
 
88
89
  a {
89
90
  color: $text-color;
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * So Simple Jekyll Theme 3.1.1 by Michael Rose
3
- * Copyright 2013-2018 Michael Rose - mademistakes.com | @mmistakes
2
+ * So Simple Jekyll Theme 3.1.2 by Michael Rose
3
+ * Copyright 2013-2019 Michael Rose - mademistakes.com | @mmistakes
4
4
  * Licensed under MIT
5
5
  */
6
6
  function showToc(e){var t=function(){e.style.display="block";var t=e.scrollHeight+"px";return e.style.disply="",t}();e.classList.add("js-toc-is-open"),e.style.height=t,window.setTimeout(function(){e.style.height=""},350)}function hideToc(e){e.style.height=e.scrollHeight+"px",window.setTimeout(function(){e.style.height="0"},1),window.setTimeout(function(){e.classList.remove("js-toc-is-open")},350)}function toggleToc(e){if(tocToggle.classList.toggle("js-toc-is-open"),e.classList.contains("js-toc-is-open"))return void hideToc(e);showToc(e)}!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(e,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,require("jquery")):e.lity=t(e,e.jQuery||e.Zepto)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e){var t=O();return M&&e.length?(e.one(M,t.resolve),setTimeout(t.resolve,500)):t.resolve(),t.promise()}function o(e,n,o){if(1===arguments.length)return t.extend({},e);if("string"==typeof n){if(void 0===o)return void 0===e[n]?null:e[n];e[n]=o}else t.extend(e,n);return this}function i(e){var t=e.indexOf("?");t>-1&&(e=e.substr(t+1));for(var n,o=decodeURI(e.split("#")[0]).split("&"),i={},l=0,r=o.length;l<r;l++)o[l]&&(n=o[l].split("="),i[n[0]]=n[1]);return i}function l(e,n){if(!n)return e;if("string"===t.type(n)&&(n=i(n)),e.indexOf("?")>-1){var o=e.split("?");e=o.shift(),n=t.extend({},i(o[0]),n)}return e+"?"+t.param(n)}function r(e,t){var n=e.indexOf("#");return-1===n?t:(n>0&&(e=e.substr(n)),t+e)}function s(e,t,n,o){return t&&t.element().addClass("lity-iframe"),n&&(e=l(e,n)),o&&(e=r(o,e)),'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen src="'+e+'"/></div>'}function a(e){return t('<span class="lity-error"/>').append(e)}function c(e,n){var o=n.opener()&&n.opener().data("lity-desc")||"Image with no description",i=t('<img src="'+e+'" alt="'+o+'"/>'),l=O(),r=function(){l.reject(a("Failed loading image"))};return i.on("load",function(){if(0===this.naturalWidth)return r();l.resolve(i)}).on("error",r),l.promise()}function d(e,n){var o,i,l;try{o=t(e)}catch(e){return!1}return!!o.length&&(i=t('<i style="display:none !important"/>'),l=o.hasClass("lity-hide"),n.element().one("lity:remove",function(){i.before(o).remove(),l&&!o.closest(".lity-content").length&&o.addClass("lity-hide")}),o.removeClass("lity-hide").after(i))}function u(e,t){var n=H.exec(e);return!!n&&s("https://www.youtube"+(n[2]||"")+".com/embed/"+n[4]+"?autoplay=1",t,n[5],e)}function f(e,t){var n=P.exec(e);return!!n&&s("https://player.vimeo.com/video/"+n[3]+"?autoplay=1",t,n[4],e)}function h(e,t){var n=F.exec(e);return!!n&&(0!==e.indexOf("http")&&(e="https:"+e),s("https://www.facebook.com/plugins/video.php?href="+e+"&autoplay=1",t,n[4],e))}function m(e,t){var n=W.exec(e);return!!n&&s("https://www.google."+n[3]+"/maps?"+n[6],t,{output:n[6].indexOf("layer=c")>0?"svembed":"embed"},e)}function p(e,t){return s(e,t)}function v(){return j.documentElement.clientHeight?j.documentElement.clientHeight:Math.round(C.height())}function g(e){var t=T();t&&(27===e.keyCode&&t.options("esc")&&t.close(),9===e.keyCode&&y(e,t))}function y(e,t){var n=t.element().find(B),o=n.index(j.activeElement);e.shiftKey&&o<=0?(n.get(n.length-1).focus(),e.preventDefault()):e.shiftKey||o!==n.length-1||(n.get(0).focus(),e.preventDefault())}function x(){t.each($,function(e,t){t.resize()})}function b(e){1===$.unshift(e)&&(D.addClass("lity-active"),C.on({resize:x,keydown:g})),t("body > *").not(e.element()).addClass("lity-hidden").each(function(){var e=t(this);void 0===e.data(z)&&e.data(z,e.attr(L)||null)}).attr(L,"true")}function w(e){var n;e.element().attr(L,"true"),1===$.length&&(D.removeClass("lity-active"),C.off({resize:x,keydown:g})),$=t.grep($,function(t){return e!==t}),n=$.length?$[0].element():t(".lity-hidden"),n.removeClass("lity-hidden").each(function(){var e=t(this),n=e.data(z);n?e.attr(L,n):e.removeAttr(L),e.removeData(z)})}function T(){return 0===$.length?null:$[0]}function k(e,n,o,i){var l,r="inline",s=t.extend({},o);return i&&s[i]?(l=s[i](e,n),r=i):(t.each(["inline","iframe"],function(e,t){delete s[t],s[t]=o[t]}),t.each(s,function(t,o){return!o||(!(!o.test||o.test(e,n))||(l=o(e,n),!1!==l?(r=t,!1):void 0))})),{handler:r,content:l||""}}function E(e,i,l,r){function s(e){d=t(e).css("max-height",v()+"px"),c.find(".lity-loader").each(function(){var e=t(this);n(e).always(function(){e.remove()})}),c.removeClass("lity-loading").find(".lity-content").empty().append(d),f=!0,d.trigger("lity:ready",[u])}var a,c,d,u=this,f=!1,h=!1;i=t.extend({},I,i),c=t(i.template),u.element=function(){return c},u.opener=function(){return l},u.content=function(){return d},u.options=t.proxy(o,u,i),u.handlers=t.proxy(o,u,i.handlers),u.resize=function(){f&&!h&&d.css("max-height",v()+"px").trigger("lity:resize",[u])},u.close=function(){if(f&&!h){h=!0,w(u);var e=O();if(r&&(j.activeElement===c[0]||t.contains(c[0],j.activeElement)))try{r.focus()}catch(e){}return d.trigger("lity:close",[u]),c.removeClass("lity-opened").addClass("lity-closed"),n(d.add(c)).always(function(){d.trigger("lity:remove",[u]),c.remove(),c=void 0,e.resolve()}),e.promise()}},a=k(e,u,i.handlers,i.handler),c.attr(L,"false").addClass("lity-loading lity-opened lity-"+a.handler).appendTo("body").focus().on("click","[data-lity-close]",function(e){t(e.target).is("[data-lity-close]")&&u.close()}).trigger("lity:open",[u]),b(u),t.when(a.content).always(s)}function S(e,n,o){e.preventDefault?(e.preventDefault(),o=t(this),e=o.data("lity-target")||o.attr("href")||o.attr("src")):o=t(o);var i=new E(e,t.extend({},o.data("lity-options")||o.data("lity"),n),o,j.activeElement);if(!e.preventDefault)return i}var j=e.document,C=t(e),O=t.Deferred,D=t("html"),$=[],L="aria-hidden",z="lity-"+L,B='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])',I={esc:!0,handler:null,handlers:{image:c,inline:d,youtube:u,vimeo:f,googlemaps:m,facebookvideo:h,iframe:p},template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>&times;</button></div></div></div>'},q=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|ico|tiff?)(\?\S*)?$)/i,H=/(youtube(-nocookie)?\.com|youtu\.be)\/(watch\?v=|v\/|u\/|embed\/?)?([\w-]{11})(.*)?/i,P=/(vimeo(pro)?\.com)\/(?:[^\d]+)?(\d+)\??(.*)?$/,W=/((maps|www)\.)?google\.([^\/\?]+)\/?((maps\/?)?\?)(.*)/i,F=/(facebook\.com)\/([a-z0-9_-]*)\/videos\/([0-9]*)(.*)?$/i,M=function(){var e=j.createElement("div"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return t[n];return!1}();return c.test=function(e){return q.test(e)},S.version="3.0.0-dev",S.options=t.proxy(o,S,I),S.handlers=t.proxy(o,S,I.handlers),S.current=T,S.iframe=s,t(j).on("click.lity","[data-lity]",S),S}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(e){var t={},n={exclude:[],excludeWithin:[],offset:0,direction:"top",delegateSelector:null,scrollElement:null,scrollTarget:null,autoFocus:!1,beforeScroll:function(){},afterScroll:function(){},easing:"swing",speed:400,autoCoefficient:2,preventDefault:!0},o=function(t){var n=[],o=!1,i=t.dir&&"left"===t.dir?"scrollLeft":"scrollTop";return this.each(function(){var t=e(this);if(this!==document&&this!==window)return!document.scrollingElement||this!==document.documentElement&&this!==document.body?void(t[i]()>0?n.push(this):(t[i](1),o=t[i]()>0,o&&n.push(this),t[i](0))):(n.push(document.scrollingElement),!1)}),n.length||this.each(function(){this===document.documentElement&&"smooth"===e(this).css("scrollBehavior")&&(n=[this]),n.length||"BODY"!==this.nodeName||(n=[this])}),"first"===t.el&&n.length>1&&(n=[n[0]]),n},i=/^([\-\+]=)(\d+)/;e.fn.extend({scrollable:function(e){var t=o.call(this,{dir:e});return this.pushStack(t)},firstScrollable:function(e){var t=o.call(this,{el:"first",dir:e});return this.pushStack(t)},smoothScroll:function(t,n){if("options"===(t=t||{}))return n?this.each(function(){var t=e(this),o=e.extend(t.data("ssOpts")||{},n);e(this).data("ssOpts",o)}):this.first().data("ssOpts");var o=e.extend({},e.fn.smoothScroll.defaults,t),i=function(t){var n=function(e){return e.replace(/(:|\.|\/)/g,"\\$1")},i=this,l=e(this),r=e.extend({},o,l.data("ssOpts")||{}),s=o.exclude,a=r.excludeWithin,c=0,d=0,u=!0,f={},h=e.smoothScroll.filterPath(location.pathname),m=e.smoothScroll.filterPath(i.pathname),p=location.hostname===i.hostname||!i.hostname,v=r.scrollTarget||m===h,g=n(i.hash);if(g&&!e(g).length&&(u=!1),r.scrollTarget||p&&v&&g){for(;u&&c<s.length;)l.is(n(s[c++]))&&(u=!1);for(;u&&d<a.length;)l.closest(a[d++]).length&&(u=!1)}else u=!1;u&&(r.preventDefault&&t.preventDefault(),e.extend(f,r,{scrollTarget:r.scrollTarget||g,link:i}),e.smoothScroll(f))};return null!==t.delegateSelector?this.off("click.smoothscroll",t.delegateSelector).on("click.smoothscroll",t.delegateSelector,i):this.off("click.smoothscroll").on("click.smoothscroll",i),this}});var l=function(e){var t={relative:""},n="string"==typeof e&&i.exec(e);return"number"==typeof e?t.px=e:n&&(t.relative=n[1],t.px=parseFloat(n[2])||0),t},r=function(t){var n=e(t.scrollTarget);t.autoFocus&&n.length&&(n[0].focus(),n.is(document.activeElement)||(n.prop({tabIndex:-1}),n[0].focus())),t.afterScroll.call(t.link,t)};e.smoothScroll=function(n,o){if("options"===n&&"object"==typeof o)return e.extend(t,o);var i,s,a,c,d=l(n),u={},f=0,h="offset",m="scrollTop",p={},v={};d.px?i=e.extend({link:null},e.fn.smoothScroll.defaults,t):(i=e.extend({link:null},e.fn.smoothScroll.defaults,n||{},t),i.scrollElement&&(h="position","static"===i.scrollElement.css("position")&&i.scrollElement.css("position","relative")),o&&(d=l(o))),m="left"===i.direction?"scrollLeft":m,i.scrollElement?(s=i.scrollElement,d.px||/^(?:HTML|BODY)$/.test(s[0].nodeName)||(f=s[m]())):s=e("html, body").firstScrollable(i.direction),i.beforeScroll.call(s,i),u=d.px?d:{relative:"",px:e(i.scrollTarget)[h]()&&e(i.scrollTarget)[h]()[i.direction]||0},p[m]=u.relative+(u.px+f+i.offset),a=i.speed,"auto"===a&&(c=Math.abs(p[m]-s[m]()),a=c/i.autoCoefficient),v={duration:a,easing:i.easing,complete:function(){r(i)}},i.step&&(v.step=i.step),s.length?s.stop().animate(p,v):r(i)},e.smoothScroll.version="2.2.0",e.smoothScroll.filterPath=function(e){return e=e||"",e.replace(/^\//,"").replace(/(?:index|default).[a-zA-Z]{3,4}$/,"").replace(/\/$/,"")},e.fn.smoothScroll.defaults=n});var tocToggle=document.getElementById("toc-toggle"),tableOfContents=document.getElementById("markdown-toc");tocToggle&&tocToggle.addEventListener("click",function(e){toggleToc(tableOfContents)}),$(document).ready(function(){var e=document.getElementById("menu-toggle"),t=document.getElementById("primary-nav");e&&t&&e.addEventListener("click",function(){t.classList.toggle("js-menu-is-open")}),$("a").smoothScroll({offset:-20}),$("a[href$='.jpg'], a[href$='.png'], a[href$='.gif']").attr("data-lity","")});
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-so-simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-03 00:00:00.000000000 Z
11
+ date: 2019-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -283,7 +283,7 @@ files:
283
283
  - assets/js/plugins/lity.js
284
284
  - assets/js/plugins/lity.min.js
285
285
  - assets/js/plugins/table-of-contents.js
286
- - assets/js/search-data.json
286
+ - assets/js/search-data.js
287
287
  homepage: https://github.com/mmistakes/minimal-mistakes
288
288
  licenses:
289
289
  - MIT
@@ -304,8 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  - !ruby/object:Gem::Version
305
305
  version: '0'
306
306
  requirements: []
307
- rubyforge_project:
308
- rubygems_version: 2.6.14
307
+ rubygems_version: 3.0.2
309
308
  signing_key:
310
309
  specification_version: 4
311
310
  summary: A simple Jekyll theme for words and pictures.