jekyll-theme-hacker 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -8
- data/_includes/head-custom-google-analytics.html +10 -0
- data/_includes/head-custom-theme-colors.html +5 -0
- data/_includes/head-custom.html +12 -0
- data/_layouts/default.html +1 -11
- data/_sass/hacker.scss +4 -0
- metadata +11 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 641cdae6a3197b9585347d44be9b1d45d134441c2808727a7e04f96af77e09d5
|
4
|
+
data.tar.gz: f5348391e9d19ad2621e4587c66a9bc8ea618e35ac492de7defd31faa3851243
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ed49ee867535b22ff7771b7e29b0b375c8b20fdba611624cc9e5130b08bc0197c57f6a9e981181383138dc1d525c709cfe3899e3db56c88bb75812b8e188a5d
|
7
|
+
data.tar.gz: cc4a6b500c03a6cb70b533a59b6ed1b32e282bb3e114aeace8df2818f08cb05a967e650464649a07f9094f43b4778db0c88e39a5ee85f70bd523b2c079448557
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# The Hacker theme
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![.github/workflows/ci.yaml](https://github.com/pages-themes/hacker/actions/workflows/ci.yaml/badge.svg)](https://github.com/pages-themes/hacker/actions/workflows/ci.yaml) [![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
|
|
@@ -13,7 +13,9 @@ To use the Hacker theme:
|
|
13
13
|
1. Add the following to your site's `_config.yml`:
|
14
14
|
|
15
15
|
```yml
|
16
|
-
|
16
|
+
remote_theme: pages-themes/hacker@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. [
|
64
|
-
2.
|
65
|
-
3.
|
66
|
-
4.
|
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/hacker/tree/master/_includes) provide a starting point and are included by the [original layout template](https://github.com/pages-themes/hacker/blob/master/_layouts/default.html).
|
66
|
+
2. For more extensive changes, [copy the original template](https://github.com/pages-themes/hacker/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`
|
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,12 @@
|
|
1
|
+
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
|
2
|
+
|
3
|
+
<!-- Setup theme-color -->
|
4
|
+
{% include head-custom-theme-colors.html %}
|
5
|
+
|
6
|
+
<!-- Setup Google Analytics -->
|
7
|
+
{% include head-custom-google-analytics.html %}
|
8
|
+
|
9
|
+
<!-- You can set your favicon here -->
|
10
|
+
<!-- link rel="shortcut icon" type="image/x-icon" href="{{ '/favicon.ico' | relative_url }}" -->
|
11
|
+
|
12
|
+
<!-- end custom head snippets -->
|
data/_layouts/default.html
CHANGED
@@ -5,6 +5,7 @@
|
|
5
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
|
+
{% include head-custom.html %}
|
8
9
|
|
9
10
|
{% seo %}
|
10
11
|
</head>
|
@@ -33,16 +34,5 @@
|
|
33
34
|
{{ content }}
|
34
35
|
</section>
|
35
36
|
</div>
|
36
|
-
|
37
|
-
{% if site.google_analytics %}
|
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');
|
45
|
-
</script>
|
46
|
-
{% endif %}
|
47
37
|
</body>
|
48
38
|
</html>
|
data/_sass/hacker.scss
ADDED
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.
|
4
|
+
version: 0.2.0
|
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: 2021-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jekyll
|
@@ -60,19 +60,19 @@ dependencies:
|
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '3.0'
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name: rubocop
|
63
|
+
name: rubocop-github
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.16'
|
69
69
|
type: :development
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.16'
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
77
|
name: w3c_validators
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,9 +96,13 @@ extra_rdoc_files: []
|
|
96
96
|
files:
|
97
97
|
- LICENSE
|
98
98
|
- README.md
|
99
|
+
- _includes/head-custom-google-analytics.html
|
100
|
+
- _includes/head-custom-theme-colors.html
|
101
|
+
- _includes/head-custom.html
|
99
102
|
- _layouts/default.html
|
100
103
|
- _layouts/post.html
|
101
104
|
- _sass/_default_colors.scss
|
105
|
+
- _sass/hacker.scss
|
102
106
|
- _sass/jekyll-theme-hacker.scss
|
103
107
|
- _sass/rouge-base16-dark.scss
|
104
108
|
- assets/css/style.scss
|
@@ -117,14 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
121
|
requirements:
|
118
122
|
- - ">="
|
119
123
|
- !ruby/object:Gem::Version
|
120
|
-
version:
|
124
|
+
version: 2.4.0
|
121
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
126
|
requirements:
|
123
127
|
- - ">="
|
124
128
|
- !ruby/object:Gem::Version
|
125
129
|
version: '0'
|
126
130
|
requirements: []
|
127
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.2.15
|
128
132
|
signing_key:
|
129
133
|
specification_version: 4
|
130
134
|
summary: Hacker is a Jekyll theme for GitHub Pages
|