doccoli-jekyll 0.1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/google-analytics.html +4 -4
- data/_includes/search.html +24 -0
- data/_layouts/default.html +3 -8
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b9d70ae96d81e2f434964b91bab36c1bc4f5e47
|
4
|
+
data.tar.gz: 279e07f615996803664bed4513a42ea3535d0603
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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>
|
data/_layouts/default.html
CHANGED
@@ -14,14 +14,9 @@
|
|
14
14
|
|
15
15
|
{% include footer.html %}
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
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:
|
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
|