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 +5 -5
- data/README.md +21 -4
- data/_layouts/default.html +2 -2
- data/_layouts/post.html +14 -0
- data/_sass/_default_colors.scss +15 -0
- data/_sass/jekyll-theme-hacker.scss +25 -9
- data/_sass/rouge-base16-dark.scss +81 -75
- metadata +47 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: da1836d37895079efb905024cca6bebecdf7b655297ccd03d57c42be169cea55
|
4
|
+
data.tar.gz: 566c7f2f4415871453dbe0add7002fecf276de1e24c06725be4dda13f4a84fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
data/_layouts/default.html
CHANGED
@@ -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="
|
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
|
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)
|
data/_layouts/post.html
ADDED
@@ -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:
|
7
|
-
color:
|
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:
|
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
|
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:
|
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:
|
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:
|
146
|
+
color: $blockquote-color;
|
140
147
|
padding-left: 10px;
|
141
|
-
border-left: 1px dotted
|
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
|
-
|
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
|
-
|
7
|
-
|
8
|
-
.highlight
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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.
|
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:
|
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
|
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
|