jekyll-theme-modernist 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: 208918e20bf441081610025b77c9d38610bb432e84a2be39a692c6db1a19a2d0
4
- data.tar.gz: fb1b55f1797691adf1a8d604c2c8abc415b123a84ecbc8232ce3243473dd3542
3
+ metadata.gz: 1247f29a0127252c43930e119c6c6f05edb3aece4dab9d3be8e9cc8bd7e223a5
4
+ data.tar.gz: f8e99646913144715eaa84df00ee9f86ef0db7f39a4c869059dd016671421ebc
5
5
  SHA512:
6
- metadata.gz: 6acc053351897019f0bf20e01bad27b9aea0f49289a078367e46dfd1c12590d88e7371bf03160e7df3408931bb8b045b5d0e3668787b224f0ef2220e8ba3b075
7
- data.tar.gz: 3cfeb3cf22e3fba2b82cb6f215a621e65de14b7bf17e9e57f44c47c8795639742cd404ba6f9035dce92eb64a27449b1b192337fe119417dfa37a9a33dd679996
6
+ metadata.gz: eec401459599b450c76d0a6ed596b3982b3eaf95cd777a6f64ad997429c43ceff8d650f0bdef0977c74215ef211a2fae9ac8d034eaa21e3066a2212e570b026c
7
+ data.tar.gz: 03e3dbaa9f857519f4eb0d3418360185290fec7c9f6d236e4b24fd696b90ee386b0a4429f81f50aa342f3ddc1026b9eb5af9e934062078696c5b7605284f84aa
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # The Modernist theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/modernist.svg?branch=master)](https://travis-ci.org/pages-themes/modernist) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-modernist.svg)](https://badge.fury.io/rb/jekyll-theme-modernist)
3
+ [![.github/workflows/ci.yaml](https://github.com/pages-themes/modernist/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/modernist/actions/workflows/ci.yaml) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-modernist.svg)](https://badge.fury.io/rb/jekyll-theme-modernist)
4
4
 
5
5
  *Modernist is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/modernist), or even [use it today](#usage).*
6
6
 
@@ -13,7 +13,9 @@ To use the Modernist theme:
13
13
  1. Add the following to your site's `_config.yml`:
14
14
 
15
15
  ```yml
16
- theme: jekyll-theme-modernist
16
+ remote_theme: pages-themes/modernist@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/modernist/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/modernist/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/modernist/blob/master/_layouts/default.html).
66
+ 2. For more extensive changes, [copy the original template](https://github.com/pages-themes/modernist/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,6 +13,8 @@
13
13
  <!--[if lt IE 9]>
14
14
  <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
15
15
  <![endif]-->
16
+
17
+ {% include head-custom.html %}
16
18
  </head>
17
19
  <body>
18
20
  <div class="wrapper">
@@ -43,16 +45,5 @@
43
45
  <p>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></p>
44
46
  </footer>
45
47
  <!--[if !IE]><script>fixScale(document);</script><![endif]-->
46
-
47
- {% if site.google_analytics %}
48
- <script>
49
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
50
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
51
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
52
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
53
- ga('create', '{{ site.google_analytics }}', 'auto');
54
- ga('send', 'pageview');
55
- </script>
56
- {% endif %}
57
48
  </body>
58
49
  </html>
@@ -3,7 +3,8 @@
3
3
 
4
4
  html {
5
5
  background:#6C7989;
6
- background: #6C7989 linear_gradient(#6C7989, #434B55) fixed;
6
+ background: #6C7989 linear-gradient(#6C7989, #434B55) fixed;
7
+ height: 100%;
7
8
  }
8
9
 
9
10
  body {
@@ -12,11 +13,12 @@ body {
12
13
  font:14px/1.5 Lato, "Helvetica Neue", Helvetica, Arial, sans-serif;
13
14
  color:#555;
14
15
  font-weight:300;
15
- background:inline-image('checker.png') fixed;
16
+ background:url('../images/checker.png') fixed;
17
+ min-height: calc(100% - 100px);
16
18
  }
17
19
 
18
20
  .wrapper {
19
- width:640px;
21
+ width:740px;
20
22
  margin:0 auto;
21
23
  background:#DEDEDE;
22
24
  border-radius: 8px;
@@ -45,7 +47,7 @@ strong {
45
47
  header {
46
48
  border-radius: 8px 8px 0 0;
47
49
  background:#C6EAFA;
48
- background: linear_gradient(#DDFBFC, #C6EAFA);
50
+ background: linear-gradient(#DDFBFC, #C6EAFA);
49
51
  position:relative;
50
52
  padding:15px 20px;
51
53
  border-bottom:1px solid #B2D2E1;
@@ -96,7 +98,7 @@ header {
96
98
  height:38px;
97
99
  padding:1px 0;
98
100
  background:#5198DF;
99
- background: linear_gradient(#77B9FB, #3782CD);
101
+ background: linear-gradient(#77B9FB, #3782CD);
100
102
  border-radius:5px;
101
103
  box-shadow: inset rgba(#fff, 0.45) 0 1px 0, inset rgba(#000, 0.2) 0 -1px 0;
102
104
  width:auto;
@@ -161,7 +163,7 @@ section {
161
163
  padding:15px 20px;
162
164
  font-size:15px;
163
165
  border-top:1px solid #fff;
164
- background: linear_gradient(#fafafa, #DEDEDE 700px);
166
+ background: linear-gradient(#fafafa, #DEDEDE 700px);
165
167
  border-radius: 0 0 8px 8px;
166
168
  position:relative;
167
169
  }
@@ -260,6 +262,20 @@ hr {
260
262
  margin:0 0 20px;
261
263
  }
262
264
 
265
+ kbd {
266
+ background-color: #fafbfc;
267
+ border: 1px solid #c6cbd1;
268
+ border-bottom-color: #959da5;
269
+ border-radius: 3px;
270
+ box-shadow: inset 0 -1px 0 #959da5;
271
+ color: #444d56;
272
+ display: inline-block;
273
+ font-size: 11px;
274
+ line-height: 10px;
275
+ padding: 3px 5px;
276
+ vertical-align: middle;
277
+ }
278
+
263
279
  footer {
264
280
  width:640px;
265
281
  margin:0 auto;
@@ -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-modernist";
metadata CHANGED
@@ -1,30 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-modernist
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
  - Steve Smith
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-modernist@github.com
87
93
  executables: []
@@ -90,8 +96,11 @@ 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-modernist.scss
103
+ - _sass/modernist.scss
95
104
  - _sass/rouge-base16-dark.scss
96
105
  - assets/css/style.scss
97
106
  - assets/images/checker.png
@@ -100,7 +109,7 @@ homepage: https://github.com/pages-themes/modernist
100
109
  licenses:
101
110
  - CC0-1.0
102
111
  metadata: {}
103
- post_install_message:
112
+ post_install_message:
104
113
  rdoc_options: []
105
114
  require_paths:
106
115
  - lib
@@ -108,16 +117,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
117
  requirements:
109
118
  - - ">="
110
119
  - !ruby/object:Gem::Version
111
- version: '0'
120
+ version: 2.4.0
112
121
  required_rubygems_version: !ruby/object:Gem::Requirement
113
122
  requirements:
114
123
  - - ">="
115
124
  - !ruby/object:Gem::Version
116
125
  version: '0'
117
126
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.7.6
120
- signing_key:
127
+ rubygems_version: 3.2.15
128
+ signing_key:
121
129
  specification_version: 4
122
130
  summary: Modernist is a Jekyll theme for GitHub Pages
123
131
  test_files: []