doccoli-jekyll 0.1.1 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d2a74695972c33fe8ed08294f02620c14fe0cb58
4
- data.tar.gz: db7f998d4489c54f1075148bc303adf6d1550c76
3
+ metadata.gz: 4b9d70ae96d81e2f434964b91bab36c1bc4f5e47
4
+ data.tar.gz: 279e07f615996803664bed4513a42ea3535d0603
5
5
  SHA512:
6
- metadata.gz: 85b5c35738dd1a180350ea422266482052166383d73457d8231cd52bd4109c8a1f097faf411cd9156c165f2688a07a88cbdb2ca8c6fc1f9cd59d323a81c5a1d5
7
- data.tar.gz: d5886f34030ad5ef98c37838bd8636b73074d239a80003fd17c55cf0d92e25952d34967f3dd815d9648554bb6706e280ed6e6990665a47e97b1ee3087c2a4d63
6
+ metadata.gz: bd45aac0dab48a8cc20d146732cc9e775b007cf9510b3ace3790a5be847eeda3b83f3f4e15436363a2eb0479ed93adb4aba9cc0d9a1559adb9c82ce757abd0ec
7
+ data.tar.gz: 48ecf17519555174c58205fbb987afbeeb220c232037781ad5685133f1df4a3a4539e9a321f12317cc1873be1d0c9c9765ddc625769e190b740515f958cb76a6
@@ -2,10 +2,10 @@
2
2
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
3
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
4
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
- })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga')
6
6
 
7
- ga('create', '{{ site.google_analytics }}', 'auto');
8
- ga('send', 'pageview');
7
+ ga('create', '{{ site.google_analytics }}', 'auto')
8
+ ga('send', 'pageview')
9
9
 
10
10
  </script>
11
-
11
+
@@ -0,0 +1,24 @@
1
+ <script id="searchJSON">
2
+ [
3
+ {% for post in site.posts %}
4
+ {
5
+
6
+ "title" : "{{ post.title | escape }}",
7
+ "url" : "{{ site.baseurl }}{{ post.url }}",
8
+ "category" : "{{ post.category }}",
9
+ "tags" : "{{ post.tags | join: ', ' }}",
10
+ "date" : "{{ post.date }}"
11
+
12
+ } {% unless forloop.last %},{% endunless %}
13
+ {% endfor %}
14
+ ]
15
+ </script>
16
+
17
+
18
+ <script>
19
+ SimpleJekyllSearch({
20
+ searchInput: document.getElementById('search-input'),
21
+ resultsContainer: document.getElementById('results-container'),
22
+ json: JSON.parse(document.getElementById('searchJSON').innerText)
23
+ })
24
+ </script>
@@ -14,14 +14,9 @@
14
14
 
15
15
  {% include footer.html %}
16
16
 
17
- <script>
18
- SimpleJekyllSearch({
19
- searchInput: document.getElementById('search-input'),
20
- resultsContainer: document.getElementById('results-container'),
21
- json: '/search.json'
22
- })
23
- </script>
24
-
17
+ {% if site.search %}
18
+ {% include search.html %}
19
+ {% endif %}
25
20
  </body>
26
21
 
27
22
  </html>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doccoli-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Danig
@@ -86,6 +86,7 @@ files:
86
86
  - _includes/icon-github.svg
87
87
  - _includes/icon-twitter.html
88
88
  - _includes/icon-twitter.svg
89
+ - _includes/search.html
89
90
  - _includes/sidebar.html
90
91
  - _layouts/default.html
91
92
  - _layouts/home.html