jekyll-theme-scrawl 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -0
- data/_includes/foot.html +0 -14
- data/_includes/head.html +0 -25
- data/_includes/{content.md → scrawl/content.md} +0 -0
- data/_includes/scrawl/foot.html +16 -0
- data/_includes/scrawl/head.html +27 -0
- data/_includes/{header.html → scrawl/header.html} +1 -1
- data/_includes/scrawl/includes.js +3 -0
- data/_includes/{js → scrawl/js}/jquery.slim.min.js +0 -0
- data/_includes/{js → scrawl/js}/quick-switcher.LICENSE.txt +0 -0
- data/_includes/{js → scrawl/js}/quick-switcher.js +0 -0
- data/_includes/{js/script.js → scrawl/js/scrawl.js} +0 -0
- data/_includes/{js → scrawl/js}/turbolinks.LICENSE.txt +0 -0
- data/_includes/{js → scrawl/js}/turbolinks.js +0 -0
- data/_includes/{nav.html → scrawl/nav.html} +2 -2
- data/_includes/{nav_category.html → scrawl/nav_category.html} +0 -0
- data/_layouts/base.html +3 -3
- data/assets/scripts.js +1 -1
- metadata +15 -13
- data/_includes/jekyll-theme-scrawl.js +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0cad12beb1a33508e88de0de8181e1d08368246e6c64f8dbe086c93d3acb749
|
4
|
+
data.tar.gz: a614a0177ca5265e5eae8af5061e86f7221efabb7f55d219637d3be610614a43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69f5309452f267c236457ff47cc0e5d3794ef880534eb39cc12c28c1882dcd4eae0fe356a77f3438aa0e6a7e58df26bd11e5ac8c6ce5a9b96802afdd7ccd2407
|
7
|
+
data.tar.gz: c37131f5faf2bca4ed3c487e57a174d172abef3d152b023140c136af5093cc95e7239e7039a2ddbe40f4cb9e7ac50454c8ada43dc5b864c6f7869fd16ca0486b
|
data/README.md
CHANGED
@@ -119,6 +119,14 @@ category: beverage
|
|
119
119
|
---
|
120
120
|
```
|
121
121
|
|
122
|
+
### Custom CSS and JavaScript
|
123
|
+
|
124
|
+
If you need to add custom CSS or JavaScript tags, you can create `_includes/head.html` and/or `_includes/foot.html` files containing the `<link>` and/or `<script>` tags you need added to your pages.
|
125
|
+
|
126
|
+
For custom CSS, you will generally want to place `<link>` tags in `_includes/head.html`.
|
127
|
+
|
128
|
+
For custom JavaScript, you will want to place your `<script>` tags in `_includes/head.html` if you are using the `defer` attribute or otherwise need the `<script>` tag to appear in the page's `<head>` tags. If you are not using `defer` and do not need the JavaScript to load in the `<head>` tag, you should place your `<script>` tags in `_includes/foot.html` so they will be added just above the page's closing `</body>` tag.
|
129
|
+
|
122
130
|
## Development
|
123
131
|
|
124
132
|
To set up your environment to develop this theme, fork this repo, clone your fork to your localhost, and run `bundle install`.
|
data/_includes/foot.html
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
</div>
|
2
|
-
|
3
|
-
{% if site.google_analytics %}
|
4
|
-
<script>
|
5
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
6
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
7
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
8
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
9
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
10
|
-
ga('send', 'pageview');
|
11
|
-
</script>
|
12
|
-
{% endif %}
|
13
|
-
</body>
|
14
|
-
</html>
|
data/_includes/head.html
CHANGED
@@ -1,25 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html lang="{{ site.lang | default: "en-US" }}">
|
3
|
-
{% assign scrawl = site.data.scrawl %}
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
-
|
9
|
-
<title>
|
10
|
-
{% if page.title == "Home" or page.title == "" or page.title == null %}
|
11
|
-
{{ site.title }}
|
12
|
-
{% else %}
|
13
|
-
{{ page.title }} · {{ site.title }}
|
14
|
-
{% endif %}
|
15
|
-
</title>
|
16
|
-
|
17
|
-
{% seo title=false %}
|
18
|
-
|
19
|
-
<link rel="stylesheet" href="{{ '/assets/styles.css?v=' | append: site.github.build_revision | relative_url }}">
|
20
|
-
|
21
|
-
<script src="{{ '/assets/scripts.js?v=' | append: site.github.build_revision | relative_url }}" defer></script>
|
22
|
-
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous" defer></script>
|
23
|
-
</head>
|
24
|
-
<body class="{{ include.width | default: page.width | default: layout.width | default: site.page_width | default: 'fixed' }}">
|
25
|
-
<div class="container">
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
</div>
|
2
|
+
|
3
|
+
{% if site.google_analytics %}
|
4
|
+
<script>
|
5
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
6
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
7
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
8
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
9
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
10
|
+
ga('send', 'pageview');
|
11
|
+
</script>
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% include foot.html %}
|
15
|
+
</body>
|
16
|
+
</html>
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ site.lang | default: "en-US" }}">
|
3
|
+
{% assign scrawl = site.data.scrawl %}
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
7
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
+
|
9
|
+
<title>
|
10
|
+
{% if page.title == "Home" or page.title == "" or page.title == null %}
|
11
|
+
{{ site.title }}
|
12
|
+
{% else %}
|
13
|
+
{{ page.title }} · {{ site.title }}
|
14
|
+
{% endif %}
|
15
|
+
</title>
|
16
|
+
|
17
|
+
{% seo title=false %}
|
18
|
+
|
19
|
+
<link rel="stylesheet" href="{{ '/assets/styles.css?v=' | append: site.github.build_revision | relative_url }}">
|
20
|
+
|
21
|
+
<script src="{{ '/assets/scripts.js?v=' | append: site.github.build_revision | relative_url }}" defer></script>
|
22
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js" integrity="sha256-lZaRhKri35AyJSypXXs4o6OPFTbTmUoltBbDCbdzegg=" crossorigin="anonymous" defer></script>
|
23
|
+
|
24
|
+
{% include head.html %}
|
25
|
+
</head>
|
26
|
+
<body class="{{ include.width | default: page.width | default: layout.width | default: site.page_width | default: 'fixed' }}">
|
27
|
+
<div class="container">
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,13 +11,13 @@
|
|
11
11
|
{% assign docs = docs | where_exp: 'doc', 'doc.title' %}
|
12
12
|
|
13
13
|
<nav>
|
14
|
-
{% include
|
14
|
+
{% include scrawl/nav_category.html docs=docs category_key='' category_title='' %}
|
15
15
|
|
16
16
|
{% if scrawl and scrawl.categories %}
|
17
17
|
{% assign ordered_categories = scrawl.categories | sort: 'order' %}
|
18
18
|
{% for category in ordered_categories %}
|
19
19
|
{% assign category_key = category.key | default: category.title %}
|
20
|
-
{% include
|
20
|
+
{% include scrawl/nav_category.html docs=docs category_key=category.key category_title=category.title %}
|
21
21
|
{% endfor %}
|
22
22
|
{% endif %}
|
23
23
|
</nav>
|
File without changes
|
data/_layouts/base.html
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
{% include
|
1
|
+
{% include scrawl/head.html %}
|
2
2
|
|
3
|
-
{% include
|
3
|
+
{% include scrawl/header.html %}
|
4
4
|
|
5
5
|
<section class="markdown-body">
|
6
6
|
{{ content }}
|
@@ -14,4 +14,4 @@
|
|
14
14
|
</footer>
|
15
15
|
</section>
|
16
16
|
|
17
|
-
{% include
|
17
|
+
{% include scrawl/foot.html %}
|
data/assets/scripts.js
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-scrawl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Light
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: github-pages
|
@@ -33,19 +33,21 @@ extra_rdoc_files: []
|
|
33
33
|
files:
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
|
-
- _includes/content.md
|
37
36
|
- _includes/foot.html
|
38
37
|
- _includes/head.html
|
39
|
-
- _includes/
|
40
|
-
- _includes/
|
41
|
-
- _includes/
|
42
|
-
- _includes/
|
43
|
-
- _includes/
|
44
|
-
- _includes/js/
|
45
|
-
- _includes/js/
|
46
|
-
- _includes/js/
|
47
|
-
- _includes/
|
48
|
-
- _includes/
|
38
|
+
- _includes/scrawl/content.md
|
39
|
+
- _includes/scrawl/foot.html
|
40
|
+
- _includes/scrawl/head.html
|
41
|
+
- _includes/scrawl/header.html
|
42
|
+
- _includes/scrawl/includes.js
|
43
|
+
- _includes/scrawl/js/jquery.slim.min.js
|
44
|
+
- _includes/scrawl/js/quick-switcher.LICENSE.txt
|
45
|
+
- _includes/scrawl/js/quick-switcher.js
|
46
|
+
- _includes/scrawl/js/scrawl.js
|
47
|
+
- _includes/scrawl/js/turbolinks.LICENSE.txt
|
48
|
+
- _includes/scrawl/js/turbolinks.js
|
49
|
+
- _includes/scrawl/nav.html
|
50
|
+
- _includes/scrawl/nav_category.html
|
49
51
|
- _layouts/base.html
|
50
52
|
- _layouts/page.html
|
51
53
|
- _layouts/sitemap.html
|