jekyll-theme-scrawl 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/foot.html +14 -0
- data/_includes/head.html +25 -0
- data/_includes/header.html +12 -0
- data/_includes/nav.html +2 -0
- data/_layouts/default.html +13 -61
- data/_layouts/sitemap.html +1 -7
- data/_sass/scrawl.scss +65 -47
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 617627f98cabd7b3c56598892349edf205bde83d
|
4
|
+
data.tar.gz: d74c7030772d2b5718073c4c2515603542e96c73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74ae491674591bde8ee62741a391ee71ed1f87bbab7f9ef9b0f358eb1b9305e055cadc2bc0935400321bac70118cef883df928f008dc23dc628c78c6616519e1
|
7
|
+
data.tar.gz: 495b46687fb7393d5c75553cfae363f59a2d1be0992547104dc4c5b78335da749dca9e0d56a622893909aefa567d1cbee6c8a9b7a556643bb1eb92bcdf29e1fe
|
data/_includes/foot.html
ADDED
@@ -0,0 +1,14 @@
|
|
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
ADDED
@@ -0,0 +1,25 @@
|
|
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" %}
|
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: site.default_width | default: 'fixed' }}">
|
25
|
+
<div class="container">
|
@@ -0,0 +1,12 @@
|
|
1
|
+
<header>
|
2
|
+
{% if site.title and site.title != page.title %}
|
3
|
+
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
|
4
|
+
{% endif %}
|
5
|
+
|
6
|
+
{% if site.description %}
|
7
|
+
<small class="description">{{ site.description | markdownify }}</small>
|
8
|
+
{% endif %}
|
9
|
+
|
10
|
+
{% include nav.html %}
|
11
|
+
|
12
|
+
</header>
|
data/_includes/nav.html
CHANGED
data/_layouts/default.html
CHANGED
@@ -1,65 +1,17 @@
|
|
1
|
-
|
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">
|
1
|
+
{% include head.html %}
|
8
2
|
|
9
|
-
|
10
|
-
{% if page.title == "Home" %}
|
11
|
-
{{ site.title }}
|
12
|
-
{% else %}
|
13
|
-
{{ page.title }} · {{ site.title }}
|
14
|
-
{% endif %}
|
15
|
-
</title>
|
3
|
+
{% include header.html %}
|
16
4
|
|
17
|
-
|
5
|
+
<section class="markdown-body">
|
6
|
+
{{ content }}
|
18
7
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
<body class="{{ page.width | default: site.default_width | default: 'fixed' }}">
|
25
|
-
|
26
|
-
<div class="container">
|
27
|
-
<header>
|
28
|
-
{% if site.title and site.title != page.title %}
|
29
|
-
<h1><a href="{{ "/" | absolute_url }}">{{ site.title }}</a></h1>
|
30
|
-
{% endif %}
|
31
|
-
|
32
|
-
{% if site.description %}
|
33
|
-
<p><small>{{ site.description | markdownify }}</small></p>
|
34
|
-
{% endif %}
|
35
|
-
|
36
|
-
{% include nav.html %}
|
37
|
-
|
38
|
-
</header>
|
39
|
-
|
40
|
-
<section class="markdown-body">
|
41
|
-
{{ content }}
|
42
|
-
|
43
|
-
<footer>
|
44
|
-
{% if site.github.private != true and site.github.license %}
|
45
|
-
<p>
|
46
|
-
This site is open source. {% github_edit_link "Improve this page" %}.
|
47
|
-
</p>
|
48
|
-
{% endif %}
|
49
|
-
</footer>
|
50
|
-
</section>
|
51
|
-
|
52
|
-
</div>
|
53
|
-
|
54
|
-
{% if site.google_analytics %}
|
55
|
-
<script>
|
56
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
57
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
58
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
59
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
60
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
61
|
-
ga('send', 'pageview');
|
62
|
-
</script>
|
8
|
+
<footer>
|
9
|
+
{% if site.github.private != true and site.github.license %}
|
10
|
+
<p>
|
11
|
+
This site is open source. {% github_edit_link "Improve this page" %}.
|
12
|
+
</p>
|
63
13
|
{% endif %}
|
64
|
-
</
|
65
|
-
</
|
14
|
+
</footer>
|
15
|
+
</section>
|
16
|
+
|
17
|
+
{% include foot.html %}
|
data/_layouts/sitemap.html
CHANGED
data/_sass/scrawl.scss
CHANGED
@@ -6,23 +6,15 @@ body {
|
|
6
6
|
margin: 0 auto;
|
7
7
|
}
|
8
8
|
|
9
|
-
header {
|
10
|
-
width: 270px;
|
11
|
-
float: left;
|
12
|
-
position: fixed;
|
13
|
-
padding-top: 25px;
|
14
|
-
padding-bottom: 25px;
|
15
|
-
overflow-y: auto;
|
16
|
-
height: 100%;
|
17
|
-
}
|
18
|
-
|
19
9
|
header h1 {
|
20
10
|
font-size: 26px;
|
11
|
+
margin-top: 25px;
|
21
12
|
margin-bottom: 8px;
|
22
13
|
}
|
23
14
|
|
24
|
-
header p {
|
25
|
-
margin-bottom:
|
15
|
+
header .description p {
|
16
|
+
margin-bottom: 10px;
|
17
|
+
padding-bottom: 10px;
|
26
18
|
}
|
27
19
|
|
28
20
|
nav ul {
|
@@ -31,20 +23,29 @@ nav ul {
|
|
31
23
|
}
|
32
24
|
|
33
25
|
nav ul li {
|
34
|
-
padding: 2px 0;
|
26
|
+
padding: 2px 0 1px 0;
|
35
27
|
}
|
36
28
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
29
|
+
body.fluid, body.fixed {
|
30
|
+
header {
|
31
|
+
width: 270px;
|
32
|
+
float: left;
|
33
|
+
position: fixed;
|
34
|
+
padding-bottom: 25px;
|
35
|
+
overflow-y: auto;
|
36
|
+
height: 100%;
|
37
|
+
}
|
38
|
+
|
39
|
+
header nav h2 {
|
40
|
+
color: #888;
|
41
|
+
padding-top: 20px;
|
42
|
+
padding-bottom: 4px;
|
43
|
+
font-size: 14px;
|
44
|
+
}
|
45
45
|
|
46
|
-
nav div:first-child h2 {
|
47
|
-
|
46
|
+
nav div:first-child h2 {
|
47
|
+
padding-top: 0;
|
48
|
+
}
|
48
49
|
}
|
49
50
|
|
50
51
|
footer p:first-child {
|
@@ -75,30 +76,6 @@ a.anchorjs-link:hover {
|
|
75
76
|
text-decoration: none;
|
76
77
|
}
|
77
78
|
|
78
|
-
.sitemap {
|
79
|
-
nav {
|
80
|
-
padding: 0;
|
81
|
-
margin: 0;
|
82
|
-
list-style: none;
|
83
|
-
|
84
|
-
display: flex;
|
85
|
-
|
86
|
-
flex-flow: row wrap;
|
87
|
-
}
|
88
|
-
|
89
|
-
h2 {
|
90
|
-
border: 0;
|
91
|
-
padding: 0;
|
92
|
-
margin-top: 0;
|
93
|
-
}
|
94
|
-
|
95
|
-
.nav-category {
|
96
|
-
padding: 5px;
|
97
|
-
width: 230px;
|
98
|
-
margin-top: 10px;
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
79
|
body.fluid {
|
103
80
|
section {
|
104
81
|
left: 295px;
|
@@ -121,6 +98,47 @@ body.fixed {
|
|
121
98
|
}
|
122
99
|
}
|
123
100
|
|
101
|
+
body.headerless {
|
102
|
+
.container {
|
103
|
+
max-width: 1012px;
|
104
|
+
}
|
105
|
+
|
106
|
+
header nav {
|
107
|
+
display: none;
|
108
|
+
}
|
109
|
+
|
110
|
+
section {
|
111
|
+
padding: 25px 0;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
body.headerless.sitemap header {
|
116
|
+
nav {
|
117
|
+
padding: 0;
|
118
|
+
margin: 0;
|
119
|
+
display: flex;
|
120
|
+
flex-flow: row wrap;
|
121
|
+
}
|
122
|
+
|
123
|
+
.description p {
|
124
|
+
border-bottom: 1px solid #dbdddf;
|
125
|
+
}
|
126
|
+
|
127
|
+
h2 {
|
128
|
+
margin-bottom: 16px;
|
129
|
+
}
|
130
|
+
|
131
|
+
ul {
|
132
|
+
padding-left: 2em;
|
133
|
+
}
|
134
|
+
|
135
|
+
.nav-category {
|
136
|
+
padding: 5px;
|
137
|
+
width: 250px;
|
138
|
+
margin-top: 10px;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
124
142
|
@media all and (max-width: 960px) {
|
125
143
|
body.fluid, body.fixed {
|
126
144
|
header {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Light
|
@@ -34,6 +34,9 @@ files:
|
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
36
|
- _includes/content.md
|
37
|
+
- _includes/foot.html
|
38
|
+
- _includes/head.html
|
39
|
+
- _includes/header.html
|
37
40
|
- _includes/jekyll-theme-scrawl.js
|
38
41
|
- _includes/js/jquery.slim.min.js
|
39
42
|
- _includes/js/script.js
|