jekyll-theme-leap-day 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb691a340bc70dd00969248acd558f8b33fe529ebe82ce6d28872d8f14469c80
4
- data.tar.gz: 30a3e1bcb12340390fd22d957bcb63739609f7852d09ce671855ec839b3cf729
3
+ metadata.gz: b77c3dab253cb59a129b0c698a75583d43720a662b6881eaae1032ffd1c1d1b2
4
+ data.tar.gz: b8247b1368366ee064e6414abb3ca8a19b4b0c559bae0ddcd2908a5bd8c441a9
5
5
  SHA512:
6
- metadata.gz: b74772e13129f415f50e61a23e12036067e7c986c53d7004cc49cb227b6450d799b556888a9e480bcc337e05d42c8438f344ad66592ded2dd0e6d7c9acc96ade
7
- data.tar.gz: d6d26c7391579136429f572db2290e2a351740d8c060815267bbbd604762cd7c1612d67b333637240ac882605d22b91efedf153dde095a157edcd82c4b79aac5
6
+ metadata.gz: 65526540d2a941a1ad9b1128f7f99ea2f8bc9cd0a0a80b89b589aa2de2b5feda0900a8c47dcf5eb219b971abf72166478413908fe72fe135fe8ed7eafcda092d
7
+ data.tar.gz: 7c7d57c71d87af31fdcc193b5c074b12d754cb19f7fc065d3e991aa9099677b280b2b289c95f37332eb326b565ad8d004007bb6601aeb55332981a21c3360cb6
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The Leap day theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/leap-day.svg?branch=master)](https://travis-ci.org/pages-themes/leap-day) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-leap-day.svg)](https://badge.fury.io/rb/jekyll-theme-leap-day)
3
+ [![.github/workflows/ci.yaml](https://github.com/pages-themes/leap-day/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/leap-day/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-leap-day.svg)](https://badge.fury.io/rb/jekyll-theme-leap-day)
4
4
 
5
5
  *Leap day is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/leap-day), or even [use it today](#usage).*
6
6
 
@@ -13,7 +13,9 @@ To use the Leap day theme:
13
13
  1. Add the following to your site's `_config.yml`:
14
14
 
15
15
  ```yml
16
- theme: jekyll-theme-leap-day
16
+ remote_theme: pages-themes/leap-day@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. [Copy the original template](https://github.com/pages-themes/leap-day/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/leap-day/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/leap-day/blob/master/_layouts/default.html).
66
+ 2. For more extensive changes, [copy the original template](https://github.com/pages-themes/leap-day/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` 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 -->
@@ -13,12 +13,13 @@
13
13
  <![endif]-->
14
14
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
15
15
 
16
+ {% include head-custom.html %}
16
17
  </head>
17
18
  <body>
18
19
 
19
20
  <header>
20
- <h1>{{ site.title | default: site.github.repository_name }}</h1>
21
- <p>{{ site.description | default: site.github.project_tagline }}</p>
21
+ <h1>{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
22
+ <p>{{ page.description | default: site.description | default: site.github.project_tagline }}</p>
22
23
  </header>
23
24
 
24
25
  <div id="banner">
@@ -48,19 +49,8 @@
48
49
  {% if site.github.is_project_page %}
49
50
  <p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
50
51
  {% endif %}
51
- <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></small></p>
52
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://twitter.com/mattgraham">mattgraham</a></small></p>
52
53
  </footer>
53
54
  </div>
54
-
55
- {% if site.google_analytics %}
56
- <script>
57
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
58
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
59
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
60
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
61
- ga('create', '{{ site.google_analytics }}', 'auto');
62
- ga('send', 'pageview');
63
- </script>
64
- {% endif %}
65
55
  </body>
66
56
  </html>
@@ -9,7 +9,7 @@ by Matt Graham
9
9
 
10
10
  body {
11
11
  font:14px/22px 'Quattrocento Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
12
- color:#666;
12
+ color:#2b2b2b;
13
13
  font-weight:300;
14
14
  margin: 0px;
15
15
  padding:0px 0 20px 0px;
@@ -48,7 +48,7 @@ h3 {
48
48
  }
49
49
 
50
50
  a {
51
- color:#3399cc;
51
+ color:#4276b6;
52
52
  font-weight:400;
53
53
  text-decoration:none;
54
54
  }
@@ -111,6 +111,20 @@ pre {
111
111
  }
112
112
  }
113
113
 
114
+ kbd {
115
+ background-color: #fafbfc;
116
+ border: 1px solid #c6cbd1;
117
+ border-bottom-color: #959da5;
118
+ border-radius: 3px;
119
+ box-shadow: inset 0 -1px 0 #959da5;
120
+ color: #444d56;
121
+ display: inline-block;
122
+ font-size: 11px;
123
+ line-height: 10px;
124
+ padding: 3px 5px;
125
+ vertical-align: middle;
126
+ }
127
+
114
128
  table {
115
129
  width:100%;
116
130
  border-collapse:collapse;
@@ -198,7 +212,7 @@ header {
198
212
 
199
213
  .button {
200
214
  border: 1px solid #dba500;
201
- background: linear_gradient(rgb(255, 231, 136), rgb(255, 206, 56));
215
+ background: linear-gradient(rgb(255, 231, 136), rgb(255, 206, 56));
202
216
  border-radius: 2px;
203
217
  box-shadow: inset 0px 1px 0px rgba(255,255,255,.4), 0px 1px 1px rgba(0,0,0,.1);
204
218
  background-color: #FFE788;
@@ -213,7 +227,7 @@ header {
213
227
  text-align:center;
214
228
 
215
229
  &:hover {
216
- background: linear_gradient(rgb(255, 231, 136), rgb(255, 231, 136));
230
+ background: linear-gradient(rgb(255, 231, 136), rgb(255, 231, 136));
217
231
  background-color: #ffeca0;
218
232
  }
219
233
  }
@@ -392,7 +406,7 @@ footer {
392
406
  section {
393
407
  border:1px solid #e5e5e5;
394
408
  border-width:1px 0;
395
- padding:20px auto;
409
+ padding:20px 0;
396
410
  margin: 190px auto 20px;
397
411
  max-width: 600px;
398
412
  }
@@ -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-leap-day";
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-leap-day
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Graham
8
8
  - GitHub, Inc.
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-11 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
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.50'
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.50'
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-leap-day@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/fonts.scss
95
103
  - _sass/jekyll-theme-leap-day.scss
104
+ - _sass/leap-day.scss
96
105
  - _sass/normalize.scss
97
106
  - _sass/rouge-base16-dark.scss
98
107
  - assets/css/style.scss
@@ -126,7 +135,7 @@ homepage: https://github.com/pages-themes/leap-day
126
135
  licenses:
127
136
  - CC0-1.0
128
137
  metadata: {}
129
- post_install_message:
138
+ post_install_message:
130
139
  rdoc_options: []
131
140
  require_paths:
132
141
  - lib
@@ -134,16 +143,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
143
  requirements:
135
144
  - - ">="
136
145
  - !ruby/object:Gem::Version
137
- version: '0'
146
+ version: 2.4.0
138
147
  required_rubygems_version: !ruby/object:Gem::Requirement
139
148
  requirements:
140
149
  - - ">="
141
150
  - !ruby/object:Gem::Version
142
151
  version: '0'
143
152
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.7.6
146
- signing_key:
153
+ rubygems_version: 3.2.15
154
+ signing_key:
147
155
  specification_version: 4
148
156
  summary: Leap Day is a Jekyll theme for GitHub Pages
149
157
  test_files: []