jekyll-theme-leap-day 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: 6f49c53ef419153ba09c1b7e9314e646dcf87466
4
- data.tar.gz: 338192fb7a754d075932517e22c64c3016648af3
2
+ SHA256:
3
+ metadata.gz: b77c3dab253cb59a129b0c698a75583d43720a662b6881eaae1032ffd1c1d1b2
4
+ data.tar.gz: b8247b1368366ee064e6414abb3ca8a19b4b0c559bae0ddcd2908a5bd8c441a9
5
5
  SHA512:
6
- metadata.gz: 3b4d6d0c499d537587eafde68e6a54bef984e6c3fc07dc52550c594b41aa90cfc21145e68251d84d54f4eca0dd6e2cd5be540d93baa7768b2fdea4bada4b7c55
7
- data.tar.gz: 4c5cbe0c7830f9c30fa894ba6d6a0864abca9bfb8bdd094f8a7c4fc4f29d0fb87656bbb15fa413cab6918c469e68b1e5d94ad07d9df798cfdbc98bd2804d6b57
6
+ metadata.gz: 65526540d2a941a1ad9b1128f7f99ea2f8bc9cd0a0a80b89b589aa2de2b5feda0900a8c47dcf5eb219b971abf72166478413908fe72fe135fe8ed7eafcda092d
7
+ data.tar.gz: 7c7d57c71d87af31fdcc193b5c074b12d754cb19f7fc065d3e991aa9099677b280b2b289c95f37332eb326b565ad8d004007bb6601aeb55332981a21c3360cb6
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # The Leap day theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-leap-day.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-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
 
7
- ![Thumbnail of leap-day](thumbnail.png)
7
+ ![Thumbnail of Leap day](thumbnail.png)
8
8
 
9
9
  ## Usage
10
10
 
@@ -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`:
@@ -22,8 +24,6 @@ To use the Leap day 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/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.
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/leap-day/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/leap-day/issues) for a list of proposed features (and known issues).
94
+ See the [open issues](https://github.com/pages-themes/leap-day/issues) for a list of proposed features (and known issues).
71
95
 
72
96
  ## Project philosophy
73
97
 
@@ -75,7 +99,7 @@ The Leap day theme is intended to make it quick and easy for GitHub Pages users
75
99
 
76
100
  ## Contributing
77
101
 
78
- Interested in contributing to Leap day? We'd love your help. Leap day 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 Leap day? We'd love your help. Leap day 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,23 +1,25 @@
1
1
  <!doctype html>
2
- <html>
2
+ <html lang="{{ site.lang | default: "en-US" }}">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="chrome=1">
6
- <title>{{ site.title | default: site.github.repository_name }} by {{ site.github.owner_name }}</title>
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+
7
+ {% seo %}
7
8
  <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
9
+ <script src="https://code.jquery.com/jquery-3.3.0.min.js" integrity="sha256-RTQy8VOmNlT6b2PIRur37p6JEBZUE7o8wPgMvu18MC4=" crossorigin="anonymous"></script>
9
10
  <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
10
11
  <!--[if lt IE 9]>
11
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
12
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.min.js" integrity="sha256-3Jy/GbSLrg0o9y5Z5n1uw0qxZECH7C6OQpVBgNFYa0g=" crossorigin="anonymous"></script>
12
13
  <![endif]-->
13
14
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
14
15
 
16
+ {% include head-custom.html %}
15
17
  </head>
16
18
  <body>
17
19
 
18
20
  <header>
19
- <h1>{{ site.title | default: site.github.repository_name }}</h1>
20
- <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>
21
23
  </header>
22
24
 
23
25
  <div id="banner">
@@ -47,23 +49,8 @@
47
49
  {% if site.github.is_project_page %}
48
50
  <p>Project maintained by <a href="{{ site.github.owner_url }}">{{ site.github.owner_name }}</a></p>
49
51
  {% endif %}
50
- <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>
51
53
  </footer>
52
54
  </div>
53
- <!--[if !IE]><script>fixScale(document);</script><![endif]-->
54
-
55
- {% if site.google_analytics %}
56
- <script type="text/javascript">
57
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
58
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
59
- </script>
60
- <script type="text/javascript">
61
- try {
62
- var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
63
- pageTracker._trackPageview();
64
- } catch(err) {}
65
- </script>
66
- {% endif %}
67
-
68
55
  </body>
69
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
  }
@@ -266,7 +280,7 @@ header {
266
280
  right:7px;
267
281
  top:7px;
268
282
  display: block;
269
- background: url(../images/octocat-logo.png);
283
+ background: url(../images/octocat-logo.svg);
270
284
  }
271
285
  }
272
286
 
@@ -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";
@@ -0,0 +1,97 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
4
+ xmlns:cc="http://creativecommons.org/ns#"
5
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6
+ xmlns:svg="http://www.w3.org/2000/svg"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10
+ id="Layer_1"
11
+ viewBox="0 0 35.999998 36.000002"
12
+ width="36"
13
+ height="36"
14
+ version="1.1"
15
+ sodipodi:docname="octocat-logo.svg"
16
+ inkscape:version="0.92.2 (5c3e80d, 2017-08-06)">
17
+ <metadata
18
+ id="metadata17">
19
+ <rdf:RDF>
20
+ <cc:Work
21
+ rdf:about="">
22
+ <dc:format>image/svg+xml</dc:format>
23
+ <dc:type
24
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
25
+ <dc:title />
26
+ </cc:Work>
27
+ </rdf:RDF>
28
+ </metadata>
29
+ <defs
30
+ id="defs15" />
31
+ <sodipodi:namedview
32
+ pagecolor="#ffffff"
33
+ bordercolor="#666666"
34
+ borderopacity="1"
35
+ objecttolerance="10"
36
+ gridtolerance="10"
37
+ guidetolerance="10"
38
+ inkscape:pageopacity="0"
39
+ inkscape:pageshadow="2"
40
+ inkscape:window-width="1920"
41
+ inkscape:window-height="986"
42
+ id="namedview13"
43
+ showgrid="false"
44
+ fit-margin-top="0"
45
+ fit-margin-left="0"
46
+ fit-margin-right="0"
47
+ fit-margin-bottom="0"
48
+ inkscape:zoom="7.9999999"
49
+ inkscape:cx="-10.44459"
50
+ inkscape:cy="22.061679"
51
+ inkscape:window-x="-11"
52
+ inkscape:window-y="-11"
53
+ inkscape:window-maximized="1"
54
+ inkscape:current-layer="Layer_1" />
55
+ <style
56
+ id="style3">.Round_x0020_Corners_x0020_2_x0020_pt{fill:#FFF;stroke:#000;stroke-miterlimit:10}.Live_x0020_Reflect_x0020_X{fill:none}.Bevel_x0020_Soft{fill:url(#SVGID_1_)}.Dusk{fill:#FFF}.Foliage_GS{fill:#FD0}.Pompadour_GS{fill:#44ade2}.Pompadour_GS,.st0{fill-rule:evenodd;clip-rule:evenodd}.st0{fill:#191717}</style>
57
+ <linearGradient
58
+ id="SVGID_1_"
59
+ gradientUnits="userSpaceOnUse"
60
+ x1="-216.625"
61
+ y1="-385.75"
62
+ x2="-215.918"
63
+ y2="-385.043">
64
+ <stop
65
+ offset="0"
66
+ id="stop6"
67
+ stop-color="#dedfe3" />
68
+ <stop
69
+ offset=".174"
70
+ id="stop8"
71
+ stop-color="#d8d9dd" />
72
+ <stop
73
+ offset=".352"
74
+ id="stop10"
75
+ stop-color="#c9cacd" />
76
+ <stop
77
+ offset=".532"
78
+ id="stop12"
79
+ stop-color="#b4b5b8" />
80
+ <stop
81
+ offset=".714"
82
+ id="stop14"
83
+ stop-color="#989a9c" />
84
+ <stop
85
+ offset=".895"
86
+ id="stop16"
87
+ stop-color="#797c7e" />
88
+ <stop
89
+ offset="1"
90
+ id="stop18"
91
+ stop-color="#656b6c" />
92
+ </linearGradient>
93
+ <path
94
+ style="fill:#231e1e;fill-opacity:0.2;stroke-width:0.809865"
95
+ d="M 18 0 A 18.000056 18.000669 0 0 0 0 18 A 18.000056 18.000669 0 0 0 18 36 A 18.000056 18.000669 0 0 0 36 18 A 18.000056 18.000669 0 0 0 18 0 z M 18 2.6542969 A 15.344311 15.344834 0 0 1 33.34375 18 A 15.344311 15.344834 0 0 1 33.275391 19.332031 C 32.516916 19.269784 31.250006 19.173828 30.369141 19.173828 C 30.002345 19.173828 29.487474 19.211973 29.003906 19.240234 C 29.136396 18.53009 29.210936 17.741989 29.210938 16.853516 A 6.7759857 6.8161667 0 0 0 27.431641 12.216797 C 27.535943 11.794914 28.165751 10.002117 27.222656 7.6835938 C 27.222656 7.6835938 27.131616 7.6572437 26.943359 7.6523438 C 26.378576 7.6376238 24.941822 7.8149574 22.505859 9.4746094 C 21.143368 9.1583804 19.677 8.9492188 18.210938 8.9492188 C 16.744145 8.9492188 15.277048 9.0554125 13.916016 9.4765625 C 10.667336 7.2636935 9.203125 7.6855469 9.203125 7.6855469 C 8.2600308 10.00407 8.7828545 11.794914 8.9921875 12.216797 C 7.8397593 13.481713 7.2109375 14.956875 7.2109375 16.853516 C 7.2109375 17.749113 7.287253 18.543958 7.421875 19.261719 C 6.7665871 19.218431 6.0514138 19.173828 5.5585938 19.173828 C 4.6865309 19.173828 3.4702374 19.269331 2.7246094 19.332031 A 15.344311 15.344834 0 0 1 2.65625 18 A 15.344311 15.344834 0 0 1 18 2.6542969 z M 5.5585938 19.640625 C 6.0798391 19.640625 6.8427542 19.689853 7.5292969 19.736328 C 7.5517558 19.830302 7.5690333 19.932552 7.59375 20.023438 C 6.889709 19.975122 6.0968717 19.925781 5.5585938 19.925781 C 4.7279419 19.925781 3.5908298 20.012069 2.8164062 20.076172 A 15.344311 15.344834 0 0 1 2.7734375 19.794922 C 3.535949 19.731328 4.7085974 19.640625 5.5585938 19.640625 z M 30.369141 19.640625 C 31.227754 19.640625 32.447334 19.73359 33.224609 19.796875 A 15.344311 15.344834 0 0 1 33.181641 20.078125 C 32.391381 20.014231 31.208932 19.925781 30.369141 19.925781 C 29.956167 19.925781 29.37691 19.968116 28.832031 20.001953 C 28.857004 19.910243 28.873836 19.80783 28.896484 19.712891 C 29.418753 19.681148 29.973493 19.640625 30.369141 19.640625 z M 5.5585938 20.394531 C 6.1376861 20.394531 7.0062594 20.445584 7.7480469 20.498047 C 8.9519568 24.076065 12.018089 25.061521 14.964844 25.390625 C 14.545447 25.812509 14.021542 26.549722 13.917969 27.708984 C 12.974875 28.1316 10.564741 28.868395 8.9921875 26.234375 C 8.9921875 26.234375 8.0491739 24.549013 6.3730469 24.443359 C 6.3730469 24.443359 4.6964831 24.44322 6.2675781 25.496094 C 6.2675781 25.496094 7.4212649 26.024315 8.1542969 28.027344 C 8.1542969 28.027344 9.2044478 31.39931 13.919922 30.345703 L 13.919922 32.775391 A 15.344311 15.344834 0 0 1 2.8867188 20.539062 C 3.6750481 20.474648 4.7595789 20.394531 5.5585938 20.394531 z M 30.369141 20.394531 C 31.178146 20.394531 32.305364 20.476631 33.111328 20.541016 A 15.344311 15.344834 0 0 1 22.611328 32.617188 L 22.611328 28.447266 C 22.611328 26.86612 22.088443 25.81196 21.458984 25.285156 C 24.408908 24.955826 27.476238 24.032852 28.677734 20.476562 C 29.274352 20.437755 29.914716 20.394531 30.369141 20.394531 z M 18.144531 26.724609 C 18.288441 26.724609 18.404297 26.902841 18.404297 27.125 L 18.404297 33.369141 A 9.9683741 15.388561 0 0 1 18.050781 33.388672 A 9.9683741 15.388561 0 0 1 17.882812 33.375 L 17.882812 27.125 C 17.882812 26.902841 18.000621 26.724609 18.144531 26.724609 z M 16.164062 27.585938 C 16.307972 27.585938 16.423828 27.766122 16.423828 27.988281 L 16.423828 33.316406 A 9.9683741 15.388561 0 0 1 15.904297 33.203125 L 15.904297 27.988281 C 15.904297 27.766122 16.020152 27.585938 16.164062 27.585938 z M 20.185547 27.585938 C 20.329457 27.585936 20.445312 27.766122 20.445312 27.988281 L 20.445312 33.173828 A 9.9683741 15.388561 0 0 1 19.925781 33.271484 L 19.925781 27.988281 C 19.925781 27.766122 20.041637 27.585938 20.185547 27.585938 z "
96
+ id="path57" />
97
+ </svg>
data/assets/js/main.js CHANGED
@@ -12,8 +12,8 @@ var sectionHeight = function() {
12
12
 
13
13
  $(window).resize(sectionHeight);
14
14
 
15
- $(document).ready(function(){
16
- $("section h1, section h2").each(function(){
15
+ $(function() {
16
+ $("section h1, section h2, section h3").each(function(){
17
17
  $("nav ul").append("<li class='tag-" + this.nodeName.toLowerCase() + "'><a href='#" + $(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,'') + "'>" + $(this).text() + "</a></li>");
18
18
  $(this).attr("id",$(this).text().toLowerCase().replace(/ /g, '-').replace(/[^\w-]+/g,''));
19
19
  $("nav ul li:first-child a").parent().addClass("active");
@@ -29,25 +29,5 @@ $(document).ready(function(){
29
29
 
30
30
  sectionHeight();
31
31
 
32
- $('img').load(sectionHeight);
32
+ $('img').on('load', sectionHeight);
33
33
  });
34
-
35
- fixScale = function(doc) {
36
-
37
- var addEvent = 'addEventListener',
38
- type = 'gesturestart',
39
- qsa = 'querySelectorAll',
40
- scales = [1, 1],
41
- meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
42
-
43
- function fix() {
44
- meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
45
- doc.removeEventListener(type, fix, true);
46
- }
47
-
48
- if ((meta = meta[meta.length - 1]) && addEvent in doc) {
49
- fix();
50
- scales = [.25, 1.6];
51
- doc[addEvent](type, fix, true);
52
- }
53
- };
metadata CHANGED
@@ -1,31 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-leap-day
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
  - Matt Graham
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-leap-day@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/fonts.scss
39
103
  - _sass/jekyll-theme-leap-day.scss
104
+ - _sass/leap-day.scss
40
105
  - _sass/normalize.scss
41
106
  - _sass/rouge-base16-dark.scss
42
107
  - assets/css/style.scss
@@ -64,13 +129,13 @@ files:
64
129
  - assets/images/body-background.png
65
130
  - assets/images/bullet.png
66
131
  - assets/images/hr.gif
67
- - assets/images/octocat-logo.png
132
+ - assets/images/octocat-logo.svg
68
133
  - assets/js/main.js
69
134
  homepage: https://github.com/pages-themes/leap-day
70
135
  licenses:
71
136
  - CC0-1.0
72
137
  metadata: {}
73
- post_install_message:
138
+ post_install_message:
74
139
  rdoc_options: []
75
140
  require_paths:
76
141
  - lib
@@ -78,16 +143,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
143
  requirements:
79
144
  - - ">="
80
145
  - !ruby/object:Gem::Version
81
- version: '0'
146
+ version: 2.4.0
82
147
  required_rubygems_version: !ruby/object:Gem::Requirement
83
148
  requirements:
84
149
  - - ">="
85
150
  - !ruby/object:Gem::Version
86
151
  version: '0'
87
152
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.5.2
90
- signing_key:
153
+ rubygems_version: 3.2.15
154
+ signing_key:
91
155
  specification_version: 4
92
156
  summary: Leap Day is a Jekyll theme for GitHub Pages
93
157
  test_files: []
Binary file