jekyll-theme-slate 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -8
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom.html +9 -0
- data/_layouts/default.html +4 -12
- data/_sass/jekyll-theme-slate.scss +15 -1
- data/_sass/slate.scss +4 -0
- metadata +22 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2d4612d91710aaf6686c77707c73d343155bd29ad2a5c03b14fe7f743090d35
|
4
|
+
data.tar.gz: a2372739c3309e9c48c825c7508014f66f718a84b4c7ce6e9ae139aaa993ccbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2eed50070682407b6787785c8c4b1e17ef8e107c13f748412b6dbda9d50c4260402a613f33f53fe5fe0aa63316642c3d2bff628cb3275dbf095bd157fdb4d6d
|
7
|
+
data.tar.gz: 9b024b489aa495b7044d7053d17ba3df03f3c0561a33edfd9d636ce1aa2e6bae1a447db352a70c058c5a3727b4b6cfad4fa12a8dad77737e17511be17bd20df8
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The Slate theme
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![.github/workflows/ci.yaml](https://github.com/pages-themes/slate/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/slate/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-slate.svg)](https://badge.fury.io/rb/jekyll-theme-slate)
|
4
4
|
|
5
5
|
*Slate is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/slate), or even [use it today](#usage).*
|
6
6
|
|
@@ -13,7 +13,9 @@ To use the Slate theme:
|
|
13
13
|
1. Add the following to your site's `_config.yml`:
|
14
14
|
|
15
15
|
```yml
|
16
|
-
|
16
|
+
remote_theme: pages-themes/slate@v0.2.0
|
17
|
+
plugins:
|
18
|
+
- jekyll-remote-theme # add this line to the plugins list if you already have one
|
17
19
|
```
|
18
20
|
|
19
21
|
2. Optionally, if you'd like to preview your site on your computer, add the following to your site's `Gemfile`:
|
@@ -36,7 +38,7 @@ description: [A short description of your site's purpose]
|
|
36
38
|
Additionally, you may choose to set the following optional variables:
|
37
39
|
|
38
40
|
```yml
|
39
|
-
show_downloads: ["true" or "false" to indicate whether to provide a download URL]
|
41
|
+
show_downloads: ["true" or "false" (unquoted) to indicate whether to provide a download URL]
|
40
42
|
google_analytics: [Your Google Analytics tracking ID]
|
41
43
|
```
|
42
44
|
|
@@ -60,10 +62,15 @@ If you'd like to add your own custom styles:
|
|
60
62
|
|
61
63
|
If you'd like to change the theme's HTML layout:
|
62
64
|
|
63
|
-
1. [
|
64
|
-
2.
|
65
|
-
3.
|
66
|
-
4.
|
65
|
+
1. For some changes such as a custom `favicon`, you can add custom files in your local `_includes` folder. The files [provided with the theme](https://github.com/pages-themes/slate/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/slate/blob/master/_layouts/default.html).
|
66
|
+
2. For more extensive changes, [copy the original template](https://github.com/pages-themes/slate/blob/master/_layouts/default.html) from the theme's repository<br />(*Pro-tip: click "raw" to make copying easier*)
|
67
|
+
3. Create a file called `/_layouts/default.html` in your site
|
68
|
+
4. Paste the default layout content copied in the first step
|
69
|
+
5. Customize the layout as you'd like
|
70
|
+
|
71
|
+
### Customizing Google Analytics code
|
72
|
+
|
73
|
+
Google has released several iterations to their Google Analytics code over the years since this theme was first created. If you would like to take advantage of the latest code, paste it into `_includes/head-custom-google-analytics.html` in your Jekyll site.
|
67
74
|
|
68
75
|
### Overriding GitHub-generated URLs
|
69
76
|
|
@@ -106,4 +113,4 @@ If you'd like to preview the theme locally (for example, in the process of propo
|
|
106
113
|
|
107
114
|
### Running tests
|
108
115
|
|
109
|
-
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap`
|
116
|
+
The theme contains a minimal test suite, to ensure a site with the theme would build successfully. To run the tests, simply run `script/cibuild`. You'll need to run `script/bootstrap` once before the test script will work.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{% if site.google_analytics %}
|
2
|
+
<script>
|
3
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
4
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
5
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
6
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
7
|
+
ga('create', '{{ site.google_analytics }}', 'auto');
|
8
|
+
ga('send', 'pageview');
|
9
|
+
</script>
|
10
|
+
{% endif %}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<!-- Setup Google Analytics -->
|
4
|
+
{% include head-custom-google-analytics.html %}
|
5
|
+
|
6
|
+
<!-- You can set your favicon here -->
|
7
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
8
|
+
|
9
|
+
<!-- end custom head snippets -->
|
data/_layouts/default.html
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
<link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
|
9
9
|
|
10
10
|
{% seo %}
|
11
|
+
{% include head-custom.html %}
|
11
12
|
</head>
|
12
13
|
|
13
14
|
<body>
|
@@ -15,7 +16,9 @@
|
|
15
16
|
<!-- HEADER -->
|
16
17
|
<div id="header_wrap" class="outer">
|
17
18
|
<header class="inner">
|
18
|
-
|
19
|
+
{% if site.github.is_project_page %}
|
20
|
+
<a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
|
21
|
+
{% endif %}
|
19
22
|
|
20
23
|
<h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
|
21
24
|
<h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
|
@@ -45,16 +48,5 @@
|
|
45
48
|
<p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
|
46
49
|
</footer>
|
47
50
|
</div>
|
48
|
-
|
49
|
-
{% if site.google_analytics %}
|
50
|
-
<script>
|
51
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
52
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
53
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
54
|
-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
55
|
-
ga('create', '{{ site.google_analytics }}', 'auto');
|
56
|
-
ga('send', 'pageview');
|
57
|
-
</script>
|
58
|
-
{% endif %}
|
59
51
|
</body>
|
60
52
|
</html>
|
@@ -159,7 +159,7 @@ pre, code {
|
|
159
159
|
background-color: #fff;
|
160
160
|
|
161
161
|
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
|
162
|
-
font-size:
|
162
|
+
font-size: 0.875em;
|
163
163
|
|
164
164
|
border-radius: 2px;
|
165
165
|
-moz-border-radius: 2px;
|
@@ -251,6 +251,20 @@ form {
|
|
251
251
|
padding: 20px;
|
252
252
|
}
|
253
253
|
|
254
|
+
kbd {
|
255
|
+
background-color: #fafbfc;
|
256
|
+
border: 1px solid #c6cbd1;
|
257
|
+
border-bottom-color: #959da5;
|
258
|
+
border-radius: 3px;
|
259
|
+
box-shadow: inset 0 -1px 0 #959da5;
|
260
|
+
color: #444d56;
|
261
|
+
display: inline-block;
|
262
|
+
font-size: 11px;
|
263
|
+
line-height: 11px;
|
264
|
+
padding: 3px 5px;
|
265
|
+
vertical-align: middle;
|
266
|
+
}
|
267
|
+
|
254
268
|
/*******************************************************************************
|
255
269
|
Full-Width Styles
|
256
270
|
*******************************************************************************/
|
data/_sass/slate.scss
ADDED
metadata
CHANGED
@@ -1,30 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-slate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Costello
|
8
8
|
- GitHub, Inc.
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - "
|
18
|
+
- - ">"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '3.5'
|
21
|
+
- - "<"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: '5.0'
|
21
24
|
type: :runtime
|
22
25
|
prerelease: false
|
23
26
|
version_requirements: !ruby/object:Gem::Requirement
|
24
27
|
requirements:
|
25
|
-
- - "
|
28
|
+
- - ">"
|
26
29
|
- !ruby/object:Gem::Version
|
27
30
|
version: '3.5'
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
28
34
|
- !ruby/object:Gem::Dependency
|
29
35
|
name: jekyll-seo-tag
|
30
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -54,19 +60,19 @@ dependencies:
|
|
54
60
|
- !ruby/object:Gem::Version
|
55
61
|
version: '3.0'
|
56
62
|
- !ruby/object:Gem::Dependency
|
57
|
-
name: rubocop
|
63
|
+
name: rubocop-github
|
58
64
|
requirement: !ruby/object:Gem::Requirement
|
59
65
|
requirements:
|
60
66
|
- - "~>"
|
61
67
|
- !ruby/object:Gem::Version
|
62
|
-
version: '0.
|
68
|
+
version: '0.16'
|
63
69
|
type: :development
|
64
70
|
prerelease: false
|
65
71
|
version_requirements: !ruby/object:Gem::Requirement
|
66
72
|
requirements:
|
67
73
|
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: '0.
|
75
|
+
version: '0.16'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: w3c_validators
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +87,7 @@ dependencies:
|
|
81
87
|
- - "~>"
|
82
88
|
- !ruby/object:Gem::Version
|
83
89
|
version: '1.3'
|
84
|
-
description:
|
90
|
+
description:
|
85
91
|
email:
|
86
92
|
- opensource+jekyll-theme-slate@github.com
|
87
93
|
executables: []
|
@@ -90,9 +96,12 @@ extra_rdoc_files: []
|
|
90
96
|
files:
|
91
97
|
- LICENSE
|
92
98
|
- README.md
|
99
|
+
- _includes/head-custom-google-analytics.html
|
100
|
+
- _includes/head-custom.html
|
93
101
|
- _layouts/default.html
|
94
102
|
- _sass/jekyll-theme-slate.scss
|
95
103
|
- _sass/rouge-github.scss
|
104
|
+
- _sass/slate.scss
|
96
105
|
- assets/css/style.scss
|
97
106
|
- assets/images/bg_hr.png
|
98
107
|
- assets/images/blacktocat.png
|
@@ -102,7 +111,7 @@ homepage: https://github.com/pages-themes/slate
|
|
102
111
|
licenses:
|
103
112
|
- CC0-1.0
|
104
113
|
metadata: {}
|
105
|
-
post_install_message:
|
114
|
+
post_install_message:
|
106
115
|
rdoc_options: []
|
107
116
|
require_paths:
|
108
117
|
- lib
|
@@ -110,16 +119,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
119
|
requirements:
|
111
120
|
- - ">="
|
112
121
|
- !ruby/object:Gem::Version
|
113
|
-
version:
|
122
|
+
version: 2.4.0
|
114
123
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
124
|
requirements:
|
116
125
|
- - ">="
|
117
126
|
- !ruby/object:Gem::Version
|
118
127
|
version: '0'
|
119
128
|
requirements: []
|
120
|
-
|
121
|
-
|
122
|
-
signing_key:
|
129
|
+
rubygems_version: 3.2.15
|
130
|
+
signing_key:
|
123
131
|
specification_version: 4
|
124
132
|
summary: Slate is a Jekyll theme for GitHub Pages
|
125
133
|
test_files: []
|