jekyll-theme-leap-day 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f59f159109a5adec8e40bed55542716c583e4175
4
- data.tar.gz: ed837d7858b98884cc6940f0f7ef676b3205c1ed
2
+ SHA256:
3
+ metadata.gz: fb691a340bc70dd00969248acd558f8b33fe529ebe82ce6d28872d8f14469c80
4
+ data.tar.gz: 30a3e1bcb12340390fd22d957bcb63739609f7852d09ce671855ec839b3cf729
5
5
  SHA512:
6
- metadata.gz: 06e060976f0615fbf75886655be7bf1759b11118fde90a85e7792bd6de7fef5a1408591e7934511daf196816e22b01e8e2dfcb6e6f024b42ad516fcc82ef9ee6
7
- data.tar.gz: ca933103f03a845f6a10d5ac6cb730bc289783b5ff34c478cb7b548583928340fb504f56e1e5e408da10e942fb394150bb6e92d4db89496be74118b8f28d688c
6
+ metadata.gz: b74772e13129f415f50e61a23e12036067e7c986c53d7004cc49cb227b6450d799b556888a9e480bcc337e05d42c8438f344ad66592ded2dd0e6d7c9acc96ade
7
+ data.tar.gz: d6d26c7391579136429f572db2290e2a351740d8c060815267bbbd604762cd7c1612d67b333637240ac882605d22b91efedf153dde095a157edcd82c4b79aac5
data/README.md CHANGED
@@ -4,7 +4,7 @@
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
 
@@ -22,8 +22,6 @@ To use the Leap day theme:
22
22
  gem "github-pages", group: :jekyll_plugins
23
23
  ```
24
24
 
25
-
26
-
27
25
  ## Customizing
28
26
 
29
27
  ### Configuration variables
@@ -56,6 +54,8 @@ If you'd like to add your own custom styles:
56
54
  ```
57
55
  3. Add any custom CSS (or Sass, including imports) you'd like immediately after the `@import` line
58
56
 
57
+ *Note: If you'd like to change the theme's Sass variables, you must set new values before the `@import` line in your stylesheet.*
58
+
59
59
  ### Layouts
60
60
 
61
61
  If you'd like to change the theme's HTML layout:
@@ -65,6 +65,23 @@ If you'd like to change the theme's HTML layout:
65
65
  3. Paste the default layout content copied in the first step
66
66
  4. Customize the layout as you'd like
67
67
 
68
+ ### Overriding GitHub-generated URLs
69
+
70
+ 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:
71
+
72
+ 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 }}`.
73
+ 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:
74
+ ```yml
75
+ github:
76
+ zip_url: http://example.com/download.zip
77
+ another_url: another value
78
+ ```
79
+ 3. When your site is built, Jekyll will use the URL you specified, rather than the default one provided by GitHub.
80
+
81
+ *Note: You must remove the `site.` prefix, and each variable name (after the `github.`) should be indent with two space below `github:`.*
82
+
83
+ For more information, see [the Jekyll variables documentation](https://jekyllrb.com/docs/variables/).
84
+
68
85
  ## Roadmap
69
86
 
70
87
  See the [open issues](https://github.com/pages-themes/leap-day/issues) for a list of proposed features (and known issues).
@@ -75,7 +92,7 @@ The Leap day theme is intended to make it quick and easy for GitHub Pages users
75
92
 
76
93
  ## Contributing
77
94
 
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.
95
+ 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
96
 
80
97
  ### Previewing the theme locally
81
98
 
@@ -2,14 +2,14 @@
2
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">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
6
 
7
7
  {% seo %}
8
8
  <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
9
- <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>
10
10
  <script src="{{ '/assets/js/main.js' | relative_url }}"></script>
11
11
  <!--[if lt IE 9]>
12
- <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>
13
13
  <![endif]-->
14
14
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
15
15
 
@@ -51,10 +51,9 @@
51
51
  <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://twitter.com/michigangraham">mattgraham</a></small></p>
52
52
  </footer>
53
53
  </div>
54
- <!--[if !IE]><script>fixScale(document);</script><![endif]-->
55
54
 
56
55
  {% if site.google_analytics %}
57
- <script type="text/javascript">
56
+ <script>
58
57
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
59
58
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
60
59
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -266,7 +266,7 @@ header {
266
266
  right:7px;
267
267
  top:7px;
268
268
  display: block;
269
- background: url(../images/octocat-logo.png);
269
+ background: url(../images/octocat-logo.svg);
270
270
  }
271
271
  }
272
272
 
@@ -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>
@@ -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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-leap-day
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Graham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-08-14 00:00:00.000000000 Z
12
+ date: 2018-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll
@@ -39,6 +39,48 @@ dependencies:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '2.0'
42
+ - !ruby/object:Gem::Dependency
43
+ name: html-proofer
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '3.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '3.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: rubocop
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.50'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.50'
70
+ - !ruby/object:Gem::Dependency
71
+ name: w3c_validators
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '1.3'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '1.3'
42
84
  description:
43
85
  email:
44
86
  - opensource+jekyll-theme-leap-day@github.com
@@ -78,7 +120,7 @@ files:
78
120
  - assets/images/body-background.png
79
121
  - assets/images/bullet.png
80
122
  - assets/images/hr.gif
81
- - assets/images/octocat-logo.png
123
+ - assets/images/octocat-logo.svg
82
124
  - assets/js/main.js
83
125
  homepage: https://github.com/pages-themes/leap-day
84
126
  licenses:
@@ -100,7 +142,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
142
  version: '0'
101
143
  requirements: []
102
144
  rubyforge_project:
103
- rubygems_version: 2.6.11
145
+ rubygems_version: 2.7.6
104
146
  signing_key:
105
147
  specification_version: 4
106
148
  summary: Leap Day is a Jekyll theme for GitHub Pages