jekyll-theme-slate 0.0.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e1365428d97da6f28967f45c875bc029cf0de305
4
- data.tar.gz: 6b2dab49e626cff44fca45b919905b4a44df689a
2
+ SHA256:
3
+ metadata.gz: b2d4612d91710aaf6686c77707c73d343155bd29ad2a5c03b14fe7f743090d35
4
+ data.tar.gz: a2372739c3309e9c48c825c7508014f66f718a84b4c7ce6e9ae139aaa993ccbc
5
5
  SHA512:
6
- metadata.gz: db315703c9e438090a38136f7d192aa4302a71b6680ba3de918117230ba26cae21d2bca167161c1786758304c586cd5f8a52306542e9cd662cd56b6e31f41821
7
- data.tar.gz: 62cf72969ec7278209ef68f6e1efd5e2e2feff528874af2a8ef7e366169c8e68f43e1f47a7d0994c2b19484d77f0817f221ef0835c68494034ed090d28e110f3
6
+ metadata.gz: b2eed50070682407b6787785c8c4b1e17ef8e107c13f748412b6dbda9d50c4260402a613f33f53fe5fe0aa63316642c3d2bff628cb3275dbf095bd157fdb4d6d
7
+ data.tar.gz: 9b024b489aa495b7044d7053d17ba3df03f3c0561a33edfd9d636ce1aa2e6bae1a447db352a70c058c5a3727b4b6cfad4fa12a8dad77737e17511be17bd20df8
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # The Slate theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-slate.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-slate) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-slate.svg)](https://badge.fury.io/rb/jekyll-theme-slate)
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
 
7
- ![Thumbnail of slate](thumbnail.png)
7
+ ![Thumbnail of Slate](thumbnail.png)
8
8
 
9
9
  ## Usage
10
10
 
@@ -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
- theme: jekyll-theme-slate
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`:
@@ -22,8 +24,6 @@ To use the Slate theme:
22
24
  gem "github-pages", group: :jekyll_plugins
23
25
  ```
24
26
 
25
-
26
-
27
27
  ## Customizing
28
28
 
29
29
  ### Configuration variables
@@ -38,7 +38,7 @@ description: [A short description of your site's purpose]
38
38
  Additionally, you may choose to set the following optional variables:
39
39
 
40
40
  ```yml
41
- 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]
42
42
  google_analytics: [Your Google Analytics tracking ID]
43
43
  ```
44
44
 
@@ -46,7 +46,7 @@ google_analytics: [Your Google Analytics tracking ID]
46
46
 
47
47
  If you'd like to add your own custom styles:
48
48
 
49
- 1. Create a file called `/assets/css/style.css` in your site
49
+ 1. Create a file called `/assets/css/style.scss` in your site
50
50
  2. Add the following content to the top of the file, exactly as shown:
51
51
  ```scss
52
52
  ---
@@ -56,18 +56,42 @@ If you'd like to add your own custom styles:
56
56
  ```
57
57
  3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
58
58
 
59
+ *Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
60
+
59
61
  ### Layouts
60
62
 
61
63
  If you'd like to change the theme's HTML layout:
62
64
 
63
- 1. [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*)
64
- 2. Create a file called `/_layouts/default.html` in your site
65
- 3. Paste the default layout content copied in the first step
66
- 4. Customize the layout as you'd like
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.
74
+
75
+ ### Overriding GitHub-generated URLs
76
+
77
+ Templates often rely on URLs supplied by GitHub such as links to your repository or links to download your project. If you'd like to override one or more default URLs:
78
+
79
+ 1. Look at [the template source](https://github.com/pages-themes/slate/blob/master/_layouts/default.html) to determine the name of the variable. It will be in the form of `{{ site.github.zip_url }}`.
80
+ 2. Specify the URL that you'd like the template to use in your site's `_config.yml`. For example, if the variable was `site.github.url`, you'd add the following:
81
+ ```yml
82
+ github:
83
+ zip_url: http://example.com/download.zip
84
+ another_url: another value
85
+ ```
86
+ 3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.
87
+
88
+ *Note: You must remove the `site.` prefix, and each variable name (after the `github.`) should be indent with two space below `github:`.*
89
+
90
+ For more information, see [the Jekyll variables documentation](https://jekyllrb.com/docs/variables/).
67
91
 
68
92
  ## Roadmap
69
93
 
70
- See the [open issues](https://github.com/pagse-themes/slate/issues) for a list of proposed features (and known issues).
94
+ See the [open issues](https://github.com/pages-themes/slate/issues) for a list of proposed features (and known issues).
71
95
 
72
96
  ## Project philosophy
73
97
 
@@ -75,7 +99,7 @@ The Slate theme is intended to make it quick and easy for GitHub Pages users to
75
99
 
76
100
  ## Contributing
77
101
 
78
- Interested in contributing to Slate? We'd love your help. Slate is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](CONTRIBUTING.md) for instructions on how to contribute.
102
+ Interested in contributing to Slate? We'd love your help. Slate is an open source project, built one contribution at a time by users like you. See [the CONTRIBUTING file](docs/CONTRIBUTING.md) for instructions on how to contribute.
79
103
 
80
104
  ### Previewing the theme locally
81
105
 
@@ -89,4 +113,4 @@ If you'd like to preview the theme locally (for example, in the process of propo
89
113
 
90
114
  ### Running tests
91
115
 
92
- 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` one before the test script will work.
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 -->
@@ -1,14 +1,14 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
3
 
4
4
  <head>
5
5
  <meta charset='utf-8'>
6
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
7
- <meta name="description" content="{{ site.title | default: site.github.repository_name }} : {{ site.description | default: site.github.project_tagline }}">
8
-
6
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
7
+ <meta name="viewport" content="width=device-width,maximum-scale=2">
9
8
  <link rel="stylesheet" type="text/css" media="screen" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
10
9
 
11
- <title>{{ site.title | default: site.github.repository_name }}</title>
10
+ {% seo %}
11
+ {% include head-custom.html %}
12
12
  </head>
13
13
 
14
14
  <body>
@@ -16,7 +16,9 @@
16
16
  <!-- HEADER -->
17
17
  <div id="header_wrap" class="outer">
18
18
  <header class="inner">
19
- <a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
19
+ {% if site.github.is_project_page %}
20
+ <a id="forkme_banner" href="{{ site.github.repository_url }}">View on GitHub</a>
21
+ {% endif %}
20
22
 
21
23
  <h1 id="project_title">{{ site.title | default: site.github.repository_name }}</h1>
22
24
  <h2 id="project_tagline">{{ site.description | default: site.github.project_tagline }}</h2>
@@ -46,8 +48,5 @@
46
48
  <p>Published with <a href="https://pages.github.com">GitHub Pages</a></p>
47
49
  </footer>
48
50
  </div>
49
-
50
-
51
-
52
51
  </body>
53
52
  </html>
@@ -98,7 +98,7 @@ footer p {
98
98
 
99
99
  a {
100
100
  text-decoration: none;
101
- color: #007edf;
101
+ color: #0F79D0;
102
102
  text-shadow: none;
103
103
 
104
104
  transition: color 0.5s ease;
@@ -113,14 +113,16 @@ a {
113
113
  -ms-transition: text-shadow 0.5s ease;
114
114
  }
115
115
 
116
- a:hover, a:focus {text-decoration: underline;}
116
+ a:hover, a:focus {
117
+ text-decoration: underline;
118
+ }
117
119
 
118
120
  footer a {
119
121
  color: #F2F2F2;
120
122
  text-decoration: underline;
121
123
  }
122
124
 
123
- em {
125
+ em, cite {
124
126
  font-style: italic;
125
127
  }
126
128
 
@@ -153,12 +155,11 @@ p img {
153
155
  }
154
156
 
155
157
  pre, code {
156
- width: 100%;
157
158
  color: #222;
158
159
  background-color: #fff;
159
160
 
160
161
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
161
- font-size: 14px;
162
+ font-size: 0.875em;
162
163
 
163
164
  border-radius: 2px;
164
165
  -moz-border-radius: 2px;
@@ -166,7 +167,6 @@ pre, code {
166
167
  }
167
168
 
168
169
  pre {
169
- width: 100%;
170
170
  padding: 10px;
171
171
  box-shadow: 0 0 10px rgba(0,0,0,.1);
172
172
  overflow: auto;
@@ -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
  *******************************************************************************/
@@ -287,7 +301,7 @@ Full-Width Styles
287
301
  background: -webkit-linear-gradient(top, #373737, #212121);
288
302
  background: -ms-linear-gradient(top, #373737, #212121);
289
303
  background: -o-linear-gradient(top, #373737, #212121);
290
- background: linear-gradient(top, #373737, #212121);
304
+ background: linear-gradient(to top, #373737, #212121);
291
305
  }
292
306
 
293
307
  #header_wrap .inner {
@@ -369,6 +383,12 @@ Full-Width Styles
369
383
  Small Device Styles
370
384
  *******************************************************************************/
371
385
 
386
+ @media screen and (max-width: 992px) {
387
+ img {
388
+ max-width: 100%;
389
+ }
390
+ }
391
+
372
392
  @media screen and (max-width: 480px) {
373
393
  body {
374
394
  font-size:14px;
@@ -412,8 +432,56 @@ Small Device Styles
412
432
  }
413
433
 
414
434
  code, pre {
415
- min-width: 320px;
416
- max-width: 480px;
435
+ font-size: 11px;
436
+ }
437
+
438
+ }
439
+
440
+ @media screen and (max-width: 320px) {
441
+ body {
442
+ font-size:14px;
443
+ }
444
+
445
+ #downloads {
446
+ display: none;
447
+ }
448
+
449
+ .inner {
450
+ min-width: 240px;
451
+ max-width: 320px;
452
+ }
453
+
454
+ #project_title {
455
+ font-size: 28px;
456
+ }
457
+
458
+ h1 {
459
+ font-size: 24px;
460
+ }
461
+
462
+ h2 {
463
+ font-size: 21px;
464
+ }
465
+
466
+ h3 {
467
+ font-size: 18px;
468
+ }
469
+
470
+ h4 {
471
+ font-size: 16px;
472
+ }
473
+
474
+ h5 {
475
+ font-size: 14px;
476
+ }
477
+
478
+ h6 {
479
+ font-size: 12px;
480
+ }
481
+
482
+ code, pre {
483
+ min-width: 240px;
484
+ max-width: 320px;
417
485
  font-size: 11px;
418
486
  }
419
487
 
@@ -1,24 +1,24 @@
1
1
  .highlight table td { padding: 5px; }
2
2
  .highlight table pre { margin: 0; }
3
3
  .highlight .cm {
4
- color: #999988;
4
+ color: #777772;
5
5
  font-style: italic;
6
6
  }
7
7
  .highlight .cp {
8
- color: #999999;
8
+ color: #797676;
9
9
  font-weight: bold;
10
10
  }
11
11
  .highlight .c1 {
12
- color: #999988;
12
+ color: #777772;
13
13
  font-style: italic;
14
14
  }
15
15
  .highlight .cs {
16
- color: #999999;
16
+ color: #797676;
17
17
  font-weight: bold;
18
18
  font-style: italic;
19
19
  }
20
20
  .highlight .c, .highlight .cd {
21
- color: #999988;
21
+ color: #777772;
22
22
  font-style: italic;
23
23
  }
24
24
  .highlight .err {
@@ -37,7 +37,7 @@
37
37
  color: #aa0000;
38
38
  }
39
39
  .highlight .gh {
40
- color: #999999;
40
+ color: #797676;
41
41
  }
42
42
  .highlight .gi {
43
43
  color: #000000;
@@ -144,7 +144,7 @@
144
144
  color: #008080;
145
145
  }
146
146
  .highlight .bp {
147
- color: #999999;
147
+ color: #797676;
148
148
  }
149
149
  .highlight .nb {
150
150
  color: #0086B3;
data/_sass/slate.scss ADDED
@@ -0,0 +1,4 @@
1
+ // Placeholder file. If your site uses
2
+ // @import "{{ site.theme }}";
3
+ // Then using this theme with jekyll-remote-theme will work fine.
4
+ @import "jekyll-theme-slate";
metadata CHANGED
@@ -1,31 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-slate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
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: 2016-12-14 00:00:00.000000000 Z
12
+ date: 2021-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.5'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '5.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">"
29
+ - !ruby/object:Gem::Version
30
+ version: '3.5'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: jekyll-seo-tag
16
36
  requirement: !ruby/object:Gem::Requirement
17
37
  requirements:
18
38
  - - "~>"
19
39
  - !ruby/object:Gem::Version
20
- version: '3.3'
40
+ version: '2.0'
21
41
  type: :runtime
22
42
  prerelease: false
23
43
  version_requirements: !ruby/object:Gem::Requirement
24
44
  requirements:
25
45
  - - "~>"
26
46
  - !ruby/object:Gem::Version
27
- version: '3.3'
28
- description:
47
+ version: '2.0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: html-proofer
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rubocop-github
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.16'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.16'
76
+ - !ruby/object:Gem::Dependency
77
+ name: w3c_validators
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.3'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.3'
90
+ description:
29
91
  email:
30
92
  - opensource+jekyll-theme-slate@github.com
31
93
  executables: []
@@ -34,9 +96,12 @@ extra_rdoc_files: []
34
96
  files:
35
97
  - LICENSE
36
98
  - README.md
99
+ - _includes/head-custom-google-analytics.html
100
+ - _includes/head-custom.html
37
101
  - _layouts/default.html
38
102
  - _sass/jekyll-theme-slate.scss
39
103
  - _sass/rouge-github.scss
104
+ - _sass/slate.scss
40
105
  - assets/css/style.scss
41
106
  - assets/images/bg_hr.png
42
107
  - assets/images/blacktocat.png
@@ -46,7 +111,7 @@ homepage: https://github.com/pages-themes/slate
46
111
  licenses:
47
112
  - CC0-1.0
48
113
  metadata: {}
49
- post_install_message:
114
+ post_install_message:
50
115
  rdoc_options: []
51
116
  require_paths:
52
117
  - lib
@@ -54,16 +119,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
54
119
  requirements:
55
120
  - - ">="
56
121
  - !ruby/object:Gem::Version
57
- version: '0'
122
+ version: 2.4.0
58
123
  required_rubygems_version: !ruby/object:Gem::Requirement
59
124
  requirements:
60
125
  - - ">="
61
126
  - !ruby/object:Gem::Version
62
127
  version: '0'
63
128
  requirements: []
64
- rubyforge_project:
65
- rubygems_version: 2.5.2
66
- signing_key:
129
+ rubygems_version: 3.2.15
130
+ signing_key:
67
131
  specification_version: 4
68
132
  summary: Slate is a Jekyll theme for GitHub Pages
69
133
  test_files: []