jekyll-theme-hacker 0.1.0 → 0.1.1

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: f52108db2e296485312f0621a9c626d841fcc61a
4
- data.tar.gz: 28c89e4e840934cfa729b7a5510c8e6a3750a39d
2
+ SHA256:
3
+ metadata.gz: da1836d37895079efb905024cca6bebecdf7b655297ccd03d57c42be169cea55
4
+ data.tar.gz: 566c7f2f4415871453dbe0add7002fecf276de1e24c06725be4dda13f4a84fe9
5
5
  SHA512:
6
- metadata.gz: 5d8856456d1dd7b29d6736f5e5373b1225f0a5c3d3ff237a09a5da72e63a292a4c1d703aebabcd67e1b1e382d78f6e068b001089fcef24215a2c95fe5c4e3d1f
7
- data.tar.gz: bb3f9ed9a0f1260e45aa03047e805e0b01cd09cf218a6fa04365fdfae96aff0136ad5e086fe55fec07b919e870466b621d3a7ba2c8cd73c863c7c17176a625d5
6
+ metadata.gz: 2a8182bb7cded9d8544b07e4e3b1d1788a6ea91e55e14125385cceeb5c47f51b01dd5161786d1a0803371092dd63f4bfd59ce9c96debbbb1b12002c9812d50bd
7
+ data.tar.gz: 493ffe0216e2480c55b904423525a82c78f29a8843cd77d282abb3e7eab8d6e911fa0126ce90409cbb21fcc9bac95d5e211c1eee5b1f331c19e74caaf3fdd76b
data/README.md CHANGED
@@ -4,7 +4,7 @@
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
@@ -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/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
87
  See the [open issues](https://github.com/pages-themes/hacker/issues) for a list of proposed features (and known issues).
@@ -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
 
@@ -2,7 +2,7 @@
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
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <link rel="stylesheet" href="{{ '/assets/css/style.css?v=' | append: site.github.build_revision | relative_url }}">
8
8
 
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
 
35
35
  {% if site.google_analytics %}
36
- <script type="text/javascript">
36
+ <script>
37
37
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
38
38
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
39
39
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
@@ -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,17 @@
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;
2
9
 
3
10
  body {
4
11
  margin: 0;
5
12
  padding: 0;
6
- background: #151515 url("../images/bkg.png") 0 0;
7
- color: #eaeaea;
13
+ background: $body-background url("../images/bkg.png") 0 0;
14
+ color: $body-foreground;
8
15
  font-size: 16px;
9
16
  line-height: 1.5;
10
17
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
@@ -14,7 +21,7 @@ body {
14
21
 
15
22
  .container {
16
23
  width: 90%;
17
- max-width: 600px;
24
+ max-width: 1000px;
18
25
  margin: 0 auto;
19
26
  }
20
27
 
@@ -40,7 +47,7 @@ li {
40
47
  header {
41
48
  background: rgba(0, 0, 0, 0.1);
42
49
  width: 100%;
43
- border-bottom: 1px dashed #b5e853;
50
+ border-bottom: 1px dashed $conifer; //header;
44
51
  padding: 20px 0;
45
52
  margin: 0 0 40px 0;
46
53
  }
@@ -51,7 +58,7 @@ header h1 {
51
58
  margin: 0 0 0 -40px;
52
59
  font-weight: bold;
53
60
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
54
- color: #b5e853;
61
+ color: $conifer;//$header;
55
62
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
56
63
  0 0 5px rgba(181, 232, 83, 0.1),
57
64
  0 0 10px rgba(181, 232, 83, 0.1);
@@ -90,7 +97,7 @@ section img {
90
97
  h1, h2, h3, h4, h5, h6 {
91
98
  font-weight: normal;
92
99
  font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
93
- color: #b5e853;
100
+ color: $header;
94
101
  letter-spacing: -0.03em;
95
102
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
96
103
  0 0 5px rgba(181, 232, 83, 0.1),
@@ -136,9 +143,9 @@ ul li {
136
143
  }
137
144
 
138
145
  blockquote {
139
- color: #aaa;
146
+ color: $blockquote-color;
140
147
  padding-left: 10px;
141
- border-left: 1px dotted #666;
148
+ border-left: 1px dotted $blockquote-border;
142
149
  }
143
150
 
144
151
  pre {
@@ -148,11 +155,20 @@ pre {
148
155
  font-size: 16px;
149
156
  color: #b5e853;
150
157
  border-radius: 2px;
151
- text-wrap: normal;
158
+ word-wrap: normal;
152
159
  overflow: auto;
153
160
  overflow-y: hidden;
154
161
  }
155
162
 
163
+ code.highlighter-rouge {
164
+ background: rgba(0,0,0,0.9);
165
+ border: 1px solid rgba(255, 255, 255, 0.15);
166
+ padding: 0px 3px;
167
+ margin: 0px -3px;
168
+ color: #aa759f;
169
+ border-radius: 2px;
170
+ }
171
+
156
172
  table {
157
173
  width: 100%;
158
174
  margin: 0 0 20px 0;
@@ -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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-hacker
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
  - Jason Costello
@@ -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-hacker@github.com
@@ -49,6 +91,8 @@ files:
49
91
  - LICENSE
50
92
  - README.md
51
93
  - _layouts/default.html
94
+ - _layouts/post.html
95
+ - _sass/_default_colors.scss
52
96
  - _sass/jekyll-theme-hacker.scss
53
97
  - _sass/rouge-base16-dark.scss
54
98
  - assets/css/style.scss
@@ -75,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
119
  version: '0'
76
120
  requirements: []
77
121
  rubyforge_project:
78
- rubygems_version: 2.6.11
122
+ rubygems_version: 2.7.6
79
123
  signing_key:
80
124
  specification_version: 4
81
125
  summary: Hacker is a Jekyll theme for GitHub Pages