jekyll-theme-hacker 0.0.2 → 0.1.2

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: 9b0b8f72a7d4cfaf496dfa7be84c746443f03f50
4
- data.tar.gz: a2055e3e19bc58827c7c320d973248be8281c3d8
2
+ SHA256:
3
+ metadata.gz: d70f7811276c12a3c1ce5ae3957c103dc809806356d162e4da0b4dcb81b577db
4
+ data.tar.gz: 405b46b79843be9b24be5692a8c6468ed20edf17920a3ad008c97c7167ea2422
5
5
  SHA512:
6
- metadata.gz: f60b71debcda918c01de4fb55e036c1db58fc3d4372094764cc48f918f9bbbae481218ba3be45ec40e865446be2863f9db725170fa9f0fde29f5acb1b2c8e62e
7
- data.tar.gz: d71dd260a5cfb58ccaf11e5cc60f60b3f2d3bba8483b39489d1a80b8ff65d6c366ea1d8e08ffaf47c0ab9d3428589284b34f622ea054ec18897035d0dfd4392a
6
+ metadata.gz: d190942840af0bbcc4c5ea678a82028596afcef5bc09b6fb147a95ed00854a8fc66a3973e838104e6bcb980d703965c4b0f3ceb8911cf07a6154ca5f3f571431
7
+ data.tar.gz: f2a158d5ac57332a4ef7d674232f2343abb2c98fdc4fd35e9697de36f110b248174675068cd519e126f1fd4b27e12cddd54e76d5187f1539003d9ba87a149086
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # The Hacker theme
2
2
 
3
- [![Build Status](https://travis-ci.org/pages-themes/jekyll-theme-hacker.svg?branch=master)](https://travis-ci.org/pages-themes/jekyll-theme-hacker) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-hacker.svg)](https://badge.fury.io/rb/jekyll-theme-hacker)
3
+ [![Build Status](https://travis-ci.org/pages-themes/hacker.svg?branch=master)](https://travis-ci.org/pages-themes/hacker) [![Gem Version](https://badge.fury.io/rb/jekyll-theme-hacker.svg)](https://badge.fury.io/rb/jekyll-theme-hacker)
4
4
 
5
5
  *Hacker is a Jekyll theme for GitHub Pages. You can [preview the theme to see what it looks like](http://pages-themes.github.io/hacker), or even [use it today](#usage).*
6
6
 
7
- ![Thumbnail of hacker](thumbnail.png)
7
+ ![Thumbnail of Hacker](thumbnail.png)
8
8
 
9
9
  ## Usage
10
10
 
@@ -22,8 +22,6 @@ To use the Hacker theme:
22
22
  gem "github-pages", group: :jekyll_plugins
23
23
  ```
24
24
 
25
-
26
-
27
25
  ## Customizing
28
26
 
29
27
  ### Configuration variables
@@ -46,7 +44,7 @@ google_analytics: [Your Google Analytics tracking ID]
46
44
 
47
45
  If you'd like to add your own custom styles:
48
46
 
49
- 1. Create a file called `/assets/css/style.css` in your site
47
+ 1. Create a file called `/assets/css/style.scss` in your site
50
48
  2. Add the following content to the top of the file, exactly as shown:
51
49
  ```scss
52
50
  ---
@@ -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,9 +65,26 @@ 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/hacker/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
- See the [open issues](https://github.com/pagse-themes/hacker/issues) for a list of proposed features (and known issues).
87
+ See the [open issues](https://github.com/pages-themes/hacker/issues) for a list of proposed features (and known issues).
71
88
 
72
89
  ## Project philosophy
73
90
 
@@ -75,7 +92,7 @@ The Hacker theme is intended to make it quick and easy for GitHub Pages users to
75
92
 
76
93
  ## Contributing
77
94
 
78
- Interested in contributing to Hacker? We'd love your help. Hacker 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 Hacker? We'd love your help. Hacker 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
 
@@ -1,17 +1,21 @@
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
- <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
7
- <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
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8
+
9
+ {% seo %}
8
10
  </head>
9
11
 
10
12
  <body>
11
13
 
12
14
  <header>
13
15
  <div class="container">
14
- <h1>{{ site.title | default: site.github.repository_name }}</h1>
16
+ <a id="a-title" href="{{ '/' | relative_url }}">
17
+ <h1>{{ site.title | default: site.github.repository_name }}</h1>
18
+ </a>
15
19
  <h2>{{ site.description | default: site.github.project_tagline }}</h2>
16
20
 
17
21
  <section id="downloads">
@@ -31,15 +35,13 @@
31
35
  </div>
32
36
 
33
37
  {% if site.google_analytics %}
34
- <script type="text/javascript">
35
- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
36
- document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
37
- </script>
38
- <script type="text/javascript">
39
- try {
40
- var pageTracker = _gat._getTracker("{{ site.google_analytics }}");
41
- pageTracker._trackPageview();
42
- } catch(err) {}
38
+ <script>
39
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
40
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
41
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
42
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
43
+ ga('create', '{{ site.google_analytics }}', 'auto');
44
+ ga('send', 'pageview');
43
45
  </script>
44
46
  {% endif %}
45
47
  </body>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <small>{{ page.date | date: "%-d %B %Y" }}</small>
6
+ <h1>{{ page.title }}</h1>
7
+
8
+ <p class="view">by {{ page.author | default: site.author }}</p>
9
+
10
+ {{content}}
11
+
12
+ {% if page.tags %}
13
+ <small>tags: <em>{{ page.tags | join: "</em> - <em>" }}</em></small>
14
+ {% endif %}
@@ -0,0 +1,15 @@
1
+ $apple-blossom: #ac4142;
2
+ $alto: #d0d0d0;
3
+ $bouquet: #aa759f;
4
+ $chelsea-cucumber: #90a959;
5
+ $cod-grey: #151515;
6
+ $conifer: #b5e853;
7
+ $dove-grey: #666;
8
+ $gallery: #eaeaea;
9
+ $grey: #888;
10
+ $gulf-stream: #75b5aa;
11
+ $hippie-blue: #6a9fb5;
12
+ $potters-clay: #8f5536;
13
+ $rajah: #f4bf75;
14
+ $raw-sienna: #d28445;
15
+ $silver-chalice: #aaa;
@@ -1,10 +1,24 @@
1
1
  @import "rouge-base16-dark";
2
+ @import "default_colors";
3
+
4
+ $body-background: $cod-grey !default;
5
+ $body-foreground: $gallery !default;
6
+ $header: $conifer !default;
7
+ $blockquote-color: $silver-chalice !default;
8
+ $blockquote-border: $dove-grey !default;
9
+ $container-max-width: 1000px;
10
+
11
+ @mixin media-max-width($max-width) {
12
+ @media (max-width: $max-width) {
13
+ @content;
14
+ }
15
+ }
2
16
 
3
17
  body {
4
18
  margin: 0;
5
19
  padding: 0;
6
- background: #151515 url("../images/bkg.png") 0 0;
7
- color: #eaeaea;
20
+ background: $body-background url("../images/bkg.png") 0 0;
21
+ color: $body-foreground;
8
22
  font-size: 16px;
9
23
  line-height: 1.5;
10
24
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
@@ -14,7 +28,7 @@ body {
14
28
 
15
29
  .container {
16
30
  width: 90%;
17
- max-width: 600px;
31
+ max-width: $container-max-width;
18
32
  margin: 0 auto;
19
33
  }
20
34
 
@@ -40,7 +54,7 @@ li {
40
54
  header {
41
55
  background: rgba(0, 0, 0, 0.1);
42
56
  width: 100%;
43
- border-bottom: 1px dashed #b5e853;
57
+ border-bottom: 1px dashed $conifer; //header;
44
58
  padding: 20px 0;
45
59
  margin: 0 0 40px 0;
46
60
  }
@@ -51,14 +65,18 @@ header h1 {
51
65
  margin: 0 0 0 -40px;
52
66
  font-weight: bold;
53
67
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
54
- color: #b5e853;
68
+ color: $conifer;//$header;
55
69
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
56
70
  0 0 5px rgba(181, 232, 83, 0.1),
57
71
  0 0 10px rgba(181, 232, 83, 0.1);
58
72
  letter-spacing: -1px;
59
73
  -webkit-font-smoothing: antialiased;
74
+ @include media-max-width($container-max-width) {
75
+ margin-left: 0;
76
+ }
60
77
  }
61
78
 
79
+
62
80
  header h1:before {
63
81
  content: "./ ";
64
82
  font-size: 24px;
@@ -90,7 +108,7 @@ section img {
90
108
  h1, h2, h3, h4, h5, h6 {
91
109
  font-weight: normal;
92
110
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
93
- color: #b5e853;
111
+ color: $header;
94
112
  letter-spacing: -0.03em;
95
113
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
96
114
  0 0 5px rgba(181, 232, 83, 0.1),
@@ -132,23 +150,13 @@ dt {
132
150
  }
133
151
 
134
152
  ul li {
135
- list-style: none;
136
- }
137
-
138
- ul li:before {
139
- content: ">>";
140
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
141
- font-size: 13px;
142
- color: #b5e853;
143
- margin-left: -37px;
144
- margin-right: 21px;
145
- line-height: 16px;
153
+ list-style-image:url('../images/bullet.png');
146
154
  }
147
155
 
148
156
  blockquote {
149
- color: #aaa;
157
+ color: $blockquote-color;
150
158
  padding-left: 10px;
151
- border-left: 1px dotted #666;
159
+ border-left: 1px dotted $blockquote-border;
152
160
  }
153
161
 
154
162
  pre {
@@ -158,13 +166,20 @@ pre {
158
166
  font-size: 16px;
159
167
  color: #b5e853;
160
168
  border-radius: 2px;
161
- -moz-border-radius: 2px;
162
- -webkit-border-radius: 2px;
163
- text-wrap: normal;
169
+ word-wrap: normal;
164
170
  overflow: auto;
165
171
  overflow-y: hidden;
166
172
  }
167
173
 
174
+ code.highlighter-rouge {
175
+ background: rgba(0,0,0,0.9);
176
+ border: 1px solid rgba(255, 255, 255, 0.15);
177
+ padding: 0px 3px;
178
+ margin: 0px -3px;
179
+ color: #aa759f;
180
+ border-radius: 2px;
181
+ }
182
+
168
183
  table {
169
184
  width: 100%;
170
185
  margin: 0 0 20px 0;
@@ -247,3 +262,7 @@ a {
247
262
  .cf {
248
263
  zoom:1;
249
264
  }
265
+
266
+ #a-title {
267
+ text-decoration: none;
268
+ }
@@ -3,79 +3,85 @@
3
3
  original base16 by Chris Kempson (https://github.com/chriskempson/base16)
4
4
  */
5
5
 
6
- .highlight table td { padding: 5px; }
7
- .highlight table pre { margin: 0; }
8
- .highlight, .highlight .w {
9
- color: #d0d0d0;
10
- }
11
- .highlight .err {
12
- color: #151515;
13
- background-color: #ac4142;
14
- }
15
- .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
16
- color: #888;
17
- }
18
- .highlight .cp {
19
- color: #f4bf75;
20
- }
21
- .highlight .nt {
22
- color: #f4bf75;
23
- }
24
- .highlight .o, .highlight .ow {
25
- color: #d0d0d0;
26
- }
27
- .highlight .p, .highlight .pi {
28
- color: #d0d0d0;
29
- }
30
- .highlight .gi {
31
- color: #90a959;
32
- }
33
- .highlight .gd {
34
- color: #ac4142;
35
- }
36
- .highlight .gh {
37
- color: #6a9fb5;
38
- font-weight: bold;
39
- }
40
- .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
41
- color: #aa759f;
42
- }
43
- .highlight .kc {
44
- color: #d28445;
45
- }
46
- .highlight .kt {
47
- color: #d28445;
48
- }
49
- .highlight .kd {
50
- color: #d28445;
51
- }
52
- .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
53
- color: #90a959;
54
- }
55
- .highlight .sr {
56
- color: #75b5aa;
57
- }
58
- .highlight .si {
59
- color: #8f5536;
60
- }
61
- .highlight .se {
62
- color: #8f5536;
63
- }
64
- .highlight .nn {
65
- color: #f4bf75;
66
- }
67
- .highlight .nc {
68
- color: #f4bf75;
69
- }
70
- .highlight .no {
71
- color: #f4bf75;
72
- }
73
- .highlight .na {
74
- color: #6a9fb5;
75
- }
76
- .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
77
- color: #90a959;
78
- }
79
- .highlight .ss {
80
- color: #90a959;
6
+ @import "default_colors";
7
+
8
+ .highlight {
9
+
10
+ $plaintext: $alto !default;
11
+ $string: $chelsea-cucumber !default;
12
+ $literal: $chelsea-cucumber !default;
13
+ $keyword: $bouquet !default;
14
+ $error-foreground: $cod-grey !default;
15
+ $error-background: $apple-blossom !default;
16
+ $comment: $grey !default;
17
+ $preprocessor: $rajah !default;
18
+ $name-space: $rajah !default;
19
+ $name-attribute: $hippie-blue !default;
20
+ $operator: $rajah !default;
21
+ $keyword-type: $raw-sienna !default;
22
+ $regex: $gulf-stream !default;
23
+ $string-escape: $potters-clay !default;
24
+ $deleted: $apple-blossom !default;
25
+ $header: $hippie-blue !default;
26
+
27
+ color: $plaintext;
28
+
29
+ table td { padding: 5px; }
30
+ table pre { margin: 0; }
31
+ .w {
32
+ color: $plaintext;
33
+ }
34
+ .err {
35
+ color: $error-foreground;
36
+ background-color: $error-background;
37
+ }
38
+ .c, .cd, .cm, .c1, .cs {
39
+ color: $comment;
40
+ }
41
+ .cp {
42
+ color: $preprocessor;
43
+ }
44
+ .o, .ow {
45
+ color: $operator;
46
+ }
47
+ .p, .pi {
48
+ color: $plaintext;
49
+ }
50
+ .gi {
51
+ color: $string;
52
+ }
53
+ .gd {
54
+ color: $deleted;
55
+ }
56
+ .gh {
57
+ color: $header;
58
+ font-weight: bold;
59
+ }
60
+ .k, .kn, .kp, .kr, .kv {
61
+ color: $keyword;
62
+ }
63
+ .kc, .kt, .kd {
64
+ color: $keyword-type;
65
+ }
66
+ .s, .sb, .sc, .sd, .s2, .sh, .sx, .s1 {
67
+ color: $string;
68
+ }
69
+ .sr {
70
+ color: $regex;
71
+ }
72
+ .si, .se {
73
+ color: $string-escape;
74
+ }
75
+ .nt, .nn, .nc, .no{
76
+ color: $name-space;
77
+ }
78
+ .na {
79
+ color: $name-attribute;
80
+ }
81
+ .m, .mf, .mh, .mi, .il, .mo, .mb, .mx {
82
+ color: $literal;
83
+ }
84
+ .ss {
85
+ color: $string;
86
+ }
81
87
  }
Binary file
metadata CHANGED
@@ -1,31 +1,93 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-hacker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.2
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: 2020-08-08 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
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.50'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.50'
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-hacker@github.com
31
93
  executables: []
@@ -35,16 +97,19 @@ files:
35
97
  - LICENSE
36
98
  - README.md
37
99
  - _layouts/default.html
100
+ - _layouts/post.html
101
+ - _sass/_default_colors.scss
38
102
  - _sass/jekyll-theme-hacker.scss
39
103
  - _sass/rouge-base16-dark.scss
40
104
  - assets/css/style.scss
41
105
  - assets/images/bkg.png
42
106
  - assets/images/blacktocat.png
107
+ - assets/images/bullet.png
43
108
  homepage: https://github.com/pages-themes/hacker
44
109
  licenses:
45
110
  - CC0-1.0
46
111
  metadata: {}
47
- post_install_message:
112
+ post_install_message:
48
113
  rdoc_options: []
49
114
  require_paths:
50
115
  - lib
@@ -59,9 +124,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
124
  - !ruby/object:Gem::Version
60
125
  version: '0'
61
126
  requirements: []
62
- rubyforge_project:
63
- rubygems_version: 2.5.2
64
- signing_key:
127
+ rubygems_version: 3.0.3
128
+ signing_key:
65
129
  specification_version: 4
66
130
  summary: Hacker is a Jekyll theme for GitHub Pages
67
131
  test_files: []