jekyll-theme-consulting 0.5.0 → 0.6.0

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
2
  SHA256:
3
- metadata.gz: 8021f2f8da7929b872cd5c428093b9ef626a51df9bd8ddf46c1960766a0e79ea
4
- data.tar.gz: 3fa4b3eb35cd2df594853c09831d58cf53aa4dabfb6e64c0e50789f097b7f408
3
+ metadata.gz: e74bf86af8b52197b763ac83887dbec5986deca39ab7e2b7b628d9938c23612d
4
+ data.tar.gz: 0c02b20142882d9a0962946b1bbbb69b9e319c7289e2b73718ad7fbad6442a11
5
5
  SHA512:
6
- metadata.gz: 41160890a6b2638a45848b7cd7bbc2bcf074833057a1f77d40580cc899464aa6090faebc98499ea1488544abf31e674dfbb943594ca629852d34e2a15fa0444a
7
- data.tar.gz: d06f2582420860f065277fc45e1187b2f1f02302477fbecb8a8136e9b2af711d1147d8597043b25a31f64dc980dc371065429aaf13efd1a656e5f4c222cb3024
6
+ metadata.gz: 43c573b722150125930555d247db26f772f2f7e08046de7cc8cee2a58c9f303e947c22f99ed5c7ce30c011093fa44c2b6c47fdad84dfba9cc199860a09a08b24
7
+ data.tar.gz: 505617507948dbccb137788dccccabf6263fd2d745b7df30db3198d3a0083d19c721a6eb68721549ab3bfe67263c97204c7d53c5e01315b60975d7d22b3ca47c
data/README.md CHANGED
@@ -135,6 +135,8 @@ Inspired by the work of [@ajlkn][ajlkn].
135
135
 
136
136
  Uses the basic template from the [cookie consent plugin][cookieconsent].
137
137
 
138
+ Uses the [simple Jekyll search plugin][simple-jekyll-search].
139
+
138
140
  Space image in the banner: the Pillars of Creation, courtesy of NASA.
139
141
 
140
142
  Repository [Jekyll logo][jekyll-logo] icon licensed under a [Creative Commons Attribution 4.0 International License][cc4-license].
@@ -149,3 +151,4 @@ The theme is available as open source under the terms of the [CC-BY-4.0](LICENSE
149
151
  [cookieconsent]: https://github.com/osano/cookieconsent
150
152
  [html5up]: https://html5up.net/
151
153
  [jekyll-logo]: https://github.com/jekyll/brand
154
+ [simple-jekyll-search]: https://github.com/christian-fei/Simple-Jekyll-Search
data/_includes/head.html CHANGED
@@ -9,6 +9,6 @@
9
9
  <link rel="alternate" hreflang="{{ page.lang }}" href="{{ page.url }}" />
10
10
  {% endfor %}
11
11
  <noscript><link rel="stylesheet" href="{{ 'assets/css/noscript.css' | absolute_url }}" /></noscript>
12
- {% if site.favicon %}<link rel="icon" href="{{ site.favicon.url | absolute_url }}" />{% endif %}
12
+ {% if site.favicon %}<link rel="icon" href="{{ site.favicon | absolute_url }}" />{% endif %}
13
13
  {% seo %}
14
14
  </head>
@@ -18,4 +18,4 @@
18
18
  {% endif %}
19
19
  {% endfor %}
20
20
  </ul>
21
- </nav>
21
+ </nav>
@@ -17,4 +17,12 @@ window.cookieconsent.initialise({
17
17
  }
18
18
  }
19
19
  });
20
- </script>
20
+ </script>
21
+ <script src="{{ 'assets/js/simple-jekyll-search.min.js' | absolute_url }}" type="text/javascript"></script>
22
+ <script>
23
+ SimpleJekyllSearch({
24
+ searchInput: document.getElementById('search-input'),
25
+ resultsContainer: document.getElementById('search-results'),
26
+ json: '/index.json'
27
+ })
28
+ </script>
@@ -0,0 +1,11 @@
1
+ <!-- Search -->
2
+ <section id="search" class="alt">
3
+ <form method="post" action="javascript:void(0);">
4
+ <input type="text" name="search-input" id="search-input" placeholder="Search" />
5
+ </form>
6
+ </section>
7
+
8
+ <nav id="results">
9
+ <ul id="search-results">
10
+ </ul>
11
+ </nav>
@@ -2,12 +2,7 @@
2
2
  <div id="sidebar" class="inverted">
3
3
  <div class="inner">
4
4
 
5
- <!-- Search -->
6
- <section id="search" class="alt">
7
- <form method="post" action="#">
8
- <input type="text" name="query" id="query" placeholder="Search" />
9
- </form>
10
- </section>
5
+ {% include search.html %}
11
6
 
12
7
  {% include navigation.html menu=include.menu %}
13
8
 
@@ -17,4 +12,4 @@
17
12
 
18
13
  {% include toggle.html %}
19
14
 
20
- </div>
15
+ </div>
@@ -6,7 +6,7 @@
6
6
 
7
7
  /* Menu */
8
8
 
9
- #menu {
9
+ #menu, #results {
10
10
  ul {
11
11
  @include vendor('user-select', 'none');
12
12
  color: _palette(fg-bold);
@@ -114,7 +114,7 @@
114
114
 
115
115
  /* Inverted */
116
116
 
117
- .inverted #menu {
117
+ .inverted #menu, .inverted #results {
118
118
  ul {
119
119
  color: _palette(fg-bold-inverted);
120
120
 
@@ -158,4 +158,4 @@
158
158
  }
159
159
  }
160
160
  }
161
- }
161
+ }
@@ -71,6 +71,11 @@
71
71
  }
72
72
  }
73
73
 
74
+ > #results {
75
+ max-height: 30%;
76
+ overflow-y: auto;
77
+ }
78
+
74
79
  > .alt {
75
80
  background-color: darken(_palette(bg-alt), 2);
76
81
  border-bottom: solid 2px _palette(border);
Binary file
@@ -0,0 +1,6 @@
1
+ /*!
2
+ * Simple-Jekyll-Search v1.7.2 (https://github.com/christian-fei/Simple-Jekyll-Search)
3
+ * Copyright 2015-2018, Christian Fei
4
+ * Licensed under the MIT License.
5
+ */
6
+ !function(){"use strict";var f={load:function w(t,e){var n=function r(){return window.XMLHttpRequest?new window.XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP")}();n.open("GET",t,!0),n.onreadystatechange=function i(e,n){return function(){if(4===e.readyState&&200===e.status)try{n(null,JSON.parse(e.responseText))}catch(t){n(t,null)}}}(n,e),n.send()}};(function y(t){if(!function e(t){return!!t&&"undefined"!=typeof t.required&&t.required instanceof Array}(t))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof y))return new y(t);var r=t.required;this.getRequiredOptions=function(){return r},this.validate=function(e){var n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}});var n=function g(t,e){var n=e.length,r=t.length;if(n<r)return!1;if(r===n)return t===e;t:for(var i=0,o=0;i<r;i++){for(var u=t.charCodeAt(i);o<n;)if(e.charCodeAt(o++)===u)continue t;return!1}return!0},e=new function t(){this.matches=function(t,e){return n(e.toLowerCase(),t.toLowerCase())}};var r=new function O(){this.matches=function(e,t){return!!e&&(e=e.trim().toLowerCase(),(t=t.trim().toLowerCase()).split(" ").filter(function(t){return 0<=e.indexOf(t)}).length===t.split(" ").length)}};var l={put:function z(t){if(c(t))return s(t);if(function e(t){return Boolean(t)&&"[object Array]"===Object.prototype.toString.call(t)}(t))return function i(t){var e=[];a();for(var n=0,r=t.length;n<r;n++)c(t[n])&&e.push(s(t[n]));return e}(t);return undefined},clear:a,search:function S(t){return t?function a(t,e,n,r){for(var i=[],o=0;o<t.length&&i.length<r.limit;o++){var u=d(t[o],e,n,r);u&&i.push(u)}return i}(o,t,u.searchStrategy,u).sort(u.sort):[]},setOptions:function q(t){(u=t||{}).fuzzy=t.fuzzy||!1,u.limit=t.limit||10,u.searchStrategy=t.fuzzy?e:r,u.sort=t.sort||i}};function i(){return 0}var o=[],u={};function a(){return o.length=0,o}function c(t){return Boolean(t)&&"[object Object]"===Object.prototype.toString.call(t)}function s(t){return o.push(t),o}function d(t,e,n,r){for(var i in t)if(!p(t[i],r.exclude)&&n.matches(t[i],e))return t}function p(t,e){for(var n=!1,r=0,i=(e=e||[]).length;r<i;r++){var o=e[r];!n&&new RegExp(t).test(o)&&(n=!0)}return n}u.fuzzy=!1,u.limit=10,u.searchStrategy=u.fuzzy?e:r,u.sort=i;var h={compile:function j(r){return m.template.replace(m.pattern,function(t,e){var n=m.middleware(e,r[e],m.template);return void 0!==n?n:r[e]||t})},setOptions:function C(t){m.pattern=t.pattern||m.pattern,m.template=t.template||m.template,"function"==typeof t.middleware&&(m.middleware=t.middleware)}},m={};m.pattern=/\{(.*?)\}/g,m.template="",m.middleware=function(){};var v={merge:function L(t,e){var n={};for(var r in t)n[r]=t[r],"undefined"!=typeof e[r]&&(n[r]=e[r]);return n},isJSON:function M(t){try{return!!(t instanceof Object&&JSON.parse(JSON.stringify(t)))}catch(e){return!1}}};!function(t){var o={searchInput:null,resultsContainer:null,json:[],success:Function.prototype,searchResultTemplate:'<li><a href="{url}" title="{desc}">{title}</a></li>',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,exclude:[]},n=["searchInput","resultsContainer","json"],r=function y(e){if(!function n(t){return!!t&&"undefined"!=typeof t.required&&t.required instanceof Array}(e))throw new Error("-- OptionsValidator: required options missing");if(!(this instanceof y))return new y(e);var r=e.required;this.getRequiredOptions=function(){return r},this.validate=function(e){var n=[];return r.forEach(function(t){"undefined"==typeof e[t]&&n.push(t)}),n}}({required:n});function i(t){o.success(t),l.put(t),function e(){o.searchInput.addEventListener("keyup",function(t){(function e(t){return-1===[13,16,20,37,38,39,40,91].indexOf(t)})(t.which)&&(u(),c(t.target.value))})}()}function u(){o.resultsContainer.innerHTML=""}function a(t){o.resultsContainer.innerHTML+=t}function c(t){(function e(t){return t&&0<t.length})(t)&&(u(),function i(t,e){var n=t.length;if(0===n)return a(o.noResultsText);for(var r=0;r<n;r++)t[r].query=e,a(h.compile(t[r]))}(l.search(t),t))}function s(t){throw new Error("SimpleJekyllSearch --- "+t)}t.SimpleJekyllSearch=function(t){return 0<r.validate(t).length&&s("You must specify the following required options: "+n),o=v.merge(o,t),h.setOptions({template:o.searchResultTemplate,middleware:o.templateMiddleware}),l.setOptions({fuzzy:o.fuzzy,limit:o.limit,sort:o.sortMiddleware}),v.isJSON(o.json)?i(o.json):function e(n){f.load(n,function(t,e){t&&s("failed to get JSON ("+n+")"),i(e)})}(o.json),{search:c}}}(window)}();
data/en/privacy-policy.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  layout: page
3
3
  lang-ref: privacy-policy-page
4
- title: Jekyll Theme Consulting
4
+ title: Privacy Policy
5
5
  header:
6
6
  title: Jekyll Theme Consulting
7
7
  subtitle: Privacy Policy
@@ -44,7 +44,7 @@ header:
44
44
  <h2>Advertisement and Other Third Parties</h2>
45
45
  </header>
46
46
  <p>This website does not contain any third party advertisement.</p>
47
- <p>It is hosted on {{ site.hosting_third_party }}.</p>
47
+ <p>It is hosted on {{ site.privacy_policy.third_party.hosting }}.</p>
48
48
  </section>
49
49
 
50
50
  <section class="inverted" >
data/robots.txt ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ ---
3
+ User-agent: *
4
+ Allow: /
5
+
6
+ Sitemap: {{ site.url }}/sitemap.xml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-consulting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Mougeolle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-05 00:00:00.000000000 Z
11
+ date: 2019-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -85,6 +85,7 @@ files:
85
85
  - _includes/logo.html
86
86
  - _includes/navigation.html
87
87
  - _includes/scripts.html
88
+ - _includes/search.html
88
89
  - _includes/sidebar.html
89
90
  - _includes/social.html
90
91
  - _includes/thread.html
@@ -154,6 +155,7 @@ files:
154
155
  - assets/images/fulls/06.jpg
155
156
  - assets/images/fulls/07.jpg
156
157
  - assets/images/fulls/08.jpg
158
+ - assets/images/logo.png
157
159
  - assets/images/logo.svg
158
160
  - assets/images/pic01.jpg
159
161
  - assets/images/pic02.jpg
@@ -182,6 +184,7 @@ files:
182
184
  - assets/js/jquery.min.js
183
185
  - assets/js/jquery.scrolly.min.js
184
186
  - assets/js/main.js
187
+ - assets/js/simple-jekyll-search.min.js
185
188
  - assets/js/util.js
186
189
  - assets/webfonts/fa-brands-400.eot
187
190
  - assets/webfonts/fa-brands-400.svg
@@ -199,6 +202,7 @@ files:
199
202
  - assets/webfonts/fa-solid-900.woff
200
203
  - assets/webfonts/fa-solid-900.woff2
201
204
  - en/privacy-policy.md
205
+ - robots.txt
202
206
  - sitemap.md
203
207
  homepage: https://github.com/moodule/jekyll-theme-consulting
204
208
  licenses: