jekyll-theme-scrawl 0.1.16 → 0.1.17

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
  SHA256:
3
- metadata.gz: 00c2388e7c825fa60f3fddd6a49821cff43e4c49f9e8f6d7365826ff11a523c7
4
- data.tar.gz: 70fd3f1f531a3edb9d0d782ef14257002a0bedf6b09d28dca8a3a64b6df45e05
3
+ metadata.gz: a0cad12beb1a33508e88de0de8181e1d08368246e6c64f8dbe086c93d3acb749
4
+ data.tar.gz: a614a0177ca5265e5eae8af5061e86f7221efabb7f55d219637d3be610614a43
5
5
  SHA512:
6
- metadata.gz: 5eb1a90c3154384c322a8d11a83e15649489b3ae7e2e7e6281abeb8f684e0269d1264f9f5e8c4e1fb927164416a1429cacd885f721373cc5b1c6d012f96d57f8
7
- data.tar.gz: b293b4b46a04b796177f8bb04b8f40a1d70e803fea9312cd1ddf0dde906c36d6398342760eae3195c35fd97533cc7a451ee1bcacbb0280748c86bb5284782ec6
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 }} &middot; {{ 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 }} &middot; {{ 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">
@@ -13,6 +13,6 @@
13
13
  <div class="description">{{ site.description | markdownify }}</div>
14
14
  {% endif %}
15
15
 
16
- {% include nav.html %}
16
+ {% include scrawl/nav.html %}
17
17
 
18
18
  </header>
@@ -0,0 +1,3 @@
1
+ {% include scrawl/js/jquery.slim.min.js %};
2
+ {% include scrawl/js/quick-switcher.js %};
3
+ {% include scrawl/js/scrawl.js %};
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 nav_category.html docs=docs category_key='' category_title='' %}
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 nav_category.html docs=docs category_key=category.key category_title=category.title %}
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>
data/_layouts/base.html CHANGED
@@ -1,6 +1,6 @@
1
- {% include head.html %}
1
+ {% include scrawl/head.html %}
2
2
 
3
- {% include header.html %}
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 foot.html %}
17
+ {% include scrawl/foot.html %}
data/assets/scripts.js CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  ---
3
3
 
4
- {% include jekyll-theme-scrawl.js %};
4
+ {% include scrawl/includes.js %};
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.16
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 00:00:00.000000000 Z
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/header.html
40
- - _includes/jekyll-theme-scrawl.js
41
- - _includes/js/jquery.slim.min.js
42
- - _includes/js/quick-switcher.LICENSE.txt
43
- - _includes/js/quick-switcher.js
44
- - _includes/js/script.js
45
- - _includes/js/turbolinks.LICENSE.txt
46
- - _includes/js/turbolinks.js
47
- - _includes/nav.html
48
- - _includes/nav_category.html
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
@@ -1,3 +0,0 @@
1
- {% include js/jquery.slim.min.js %};
2
- {% include js/quick-switcher.js %};
3
- {% include js/script.js %};