jekyll-theme-collider 0.1.2 → 0.1.3
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 769ec5b0deb9a4a6eb551d2a214f4e0814f28048
|
4
|
+
data.tar.gz: 45f005a8ae881b65a19c47e7c6cc345c11d0e052
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f977b23f1cca5b42de6e62c61ede46b87bdb30ed754184afa3659472151f99d77c8eba04b2442b45ccae13a2bec5cc6255f6f57d85bf45245c32fb573f53e003
|
7
|
+
data.tar.gz: cbeb0654df2ba0b2766762e88836d0617f44bc58ea73cc173d15377797263f983832ca625fb33e6cd05607514474818ed524be70bbddd8c283bae1da349b6f30
|
data/README.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# jekyll-theme-collider
|
2
2
|
|
3
|
+
- [About](#about)
|
4
|
+
- [Installation](#installation)
|
5
|
+
- [Jekyll requirements](#jekyll-requirements)
|
6
|
+
- [Create a local copy of the site](#create-a-local-copy-of-the-site)
|
7
|
+
- [Install theme using gem](#install-theme-using-gem)
|
8
|
+
- [Troubleshooting](#troubleshooting)
|
9
|
+
- [Tags](#tags)
|
10
|
+
- [Colors](#colors)
|
11
|
+
- [Page header colors](#page-header-colors)
|
12
|
+
- [Homepage background color](#homepage-background-color)
|
13
|
+
- [About page customization](#about-page-customization)
|
14
|
+
- [Customizing particles js](#customizing-particles-js)
|
15
|
+
- [Future projects](#future-projects)
|
16
|
+
- [Contributing](#contributing)
|
17
|
+
- [License](#license)
|
18
|
+
|
3
19
|
## About
|
4
20
|
This theme has two main nifty features, the use of [particles.js](https://vincentgarreau.com/particles.js/) and the [jekyll-paginate-v2 plugin](https://github.com/sverrirs/jekyll-paginate-v2/tree/master/examples). For those who don't know, the jekyll-paginate-v2 plugin allows you to do cool things like paginate within a given collection, which the current jekyll-paginate gem does not allow.
|
5
21
|
|
@@ -8,13 +24,13 @@ I'm also using the powers of [ITCSS](https://github.com/ahmadajmi/awesome-itcss)
|
|
8
24
|
The font I'm using is a favorite of mine, [Operator Mono SSm](https://www.typography.com/fonts/operator/styles/operatormonoscreensmart). Also notice the fun use of colors on tags and each page, these are easily customizable by design and is detailed below.
|
9
25
|
|
10
26
|
## Installation
|
11
|
-
|
27
|
+
#### Jekyll requirements
|
12
28
|
* You must have Ruby installed:
|
13
29
|
* https://www.ruby-lang.org/en/downloads/
|
14
30
|
* Install Jekyll and Bundler:
|
15
31
|
* `gem install jekyll bundler`
|
16
32
|
|
17
|
-
|
33
|
+
#### Create a local copy of the site
|
18
34
|
* Download this site:
|
19
35
|
* `git clone https://github.com/ryancolorcafe/jekyll-theme-collider.git`
|
20
36
|
* Move into directory:
|
@@ -25,7 +41,7 @@ The font I'm using is a favorite of mine, [Operator Mono SSm](https://www.typogr
|
|
25
41
|
* `bundle exec jekyll serve`
|
26
42
|
* Browse to http://localhost:4000
|
27
43
|
|
28
|
-
|
44
|
+
#### Install theme using gem
|
29
45
|
* Add this line to your Gemfile:
|
30
46
|
* `gem "jekyll-theme-collider"`
|
31
47
|
* Install running this command in your terminal:
|
@@ -63,7 +79,7 @@ linked_in_profile: [LinkedIn profile url]
|
|
63
79
|
full_name: [Your username]
|
64
80
|
user_description: [Your description]
|
65
81
|
disqus:
|
66
|
-
shortname: [Your Disqus shortname]
|
82
|
+
shortname: [Your Disqus shortname] # https://disqus.com
|
67
83
|
|
68
84
|
theme: jekyll-theme-collider
|
69
85
|
|
@@ -93,7 +109,7 @@ pagination:
|
|
93
109
|
* Run your server and you should be good to go!
|
94
110
|
* `bundle exec jekyll serve`
|
95
111
|
|
96
|
-
|
112
|
+
#### Troubleshooting:
|
97
113
|
* The `curl -L -O` commands may not have fully downloaded each file. Even if it seems the file was fully downloaded, open each one to make sure that it doesn't just contain a 503 error inside. Delete the files with errors and retry the curl commands.
|
98
114
|
* You may need to restart your server in order for your changes to take effect.
|
99
115
|
|
@@ -115,7 +131,7 @@ pagination:
|
|
115
131
|
|
116
132
|
All posts tagged with _Jekyll_
|
117
133
|
```
|
118
|
-
If you're familiar with Jekyll
|
134
|
+
If you're familiar with Jekyll [front matter](https://jekyllrb.com/docs/front-matter/), this configuration will be intuitive. The parts unique to this theme are the color and the pagination configurations. The color configured here will determine the color of the tag page header and is based on SCSS color settings, meaning it's not just the default CSS purple color being used here. More on that in the colors section below.
|
119
135
|
|
120
136
|
The pagination settings are necessary to set for the jekyll-pagination-v2 plugin. The only one you'll likely want to ever modify here is the `tag:` setting, where you simply put the tag name you'd like to use in lowercase.
|
121
137
|
|
@@ -131,7 +147,7 @@ In order to configure the colors as above, and make your own custom colors, see
|
|
131
147
|
|
132
148
|
If using this theme as a gem, see [overriding theme defaults](https://jekyllrb.com/docs/themes/#overriding-theme-defaults) in the Jekyll docs as you will need to make a copy of the following files.
|
133
149
|
|
134
|
-
|
150
|
+
#### Page header colors
|
135
151
|
|
136
152
|
To set up a new color variable in the SCSS, you may do so in `settings/_color.scss`. To create a new reusable color class that can be used for tag pages and the tags themselves, go to `elements/_colors.scss`. The structure a new color classes should look like the following:
|
137
153
|
|
@@ -155,9 +171,9 @@ a.bg--orange:hover {
|
|
155
171
|
|
156
172
|
This is what would allow you to simply configure `color: orange` in your `tags` and `_blog_tags` directory files. For an example of what is happening under the hood, you can take a look at the `_includes/header.html` file, lines 1-15.
|
157
173
|
|
158
|
-
|
174
|
+
#### Homepage background color
|
159
175
|
|
160
|
-
To change the background color of the particles.js canvas on the
|
176
|
+
To change the background color of the particles.js canvas on the homepage, go to `components/_particles.scss` and change the background color here:
|
161
177
|
```
|
162
178
|
#particles-js {
|
163
179
|
background: $dark-sea-green;
|
@@ -174,20 +190,20 @@ layout: default
|
|
174
190
|
```
|
175
191
|
You may put whatever HTML and text you'd like below.
|
176
192
|
|
177
|
-
## Customizing particles
|
193
|
+
## Customizing particles js
|
178
194
|
|
179
195
|
To customize particles.js, such as the shape and size of the particles, you'll need to edit `assets/js/app.js`. If using the theme gem, you'll need to create this file and override with your own settings. Since this customization is outside the scope of this readme, I recommend learning more on the particles.js [GitHub page](https://github.com/VincentGarreau/particles.js/).
|
180
196
|
|
181
|
-
## Contributing
|
182
|
-
|
183
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/ryancolorcafe/jekyll-theme-collider. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
184
|
-
|
185
197
|
## Future projects
|
186
198
|
|
187
199
|
* A portfolio/work page using CSS Grid
|
188
200
|
* Search bar for articles in blog
|
189
201
|
* Modular scale typography
|
190
202
|
|
203
|
+
## Contributing
|
204
|
+
|
205
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ryancolorcafe/jekyll-theme-collider. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
206
|
+
|
191
207
|
## License
|
192
208
|
|
193
209
|
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,81 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
|
5
|
+
pre {
|
6
|
+
white-space: pre-wrap;
|
7
|
+
}
|
8
|
+
|
9
|
+
.highlight {
|
10
|
+
background: whitesmoke;
|
11
|
+
padding: 8px 12px;
|
12
|
+
margin: 20px 0 0 0;
|
13
|
+
|
14
|
+
.highlighter-rouge & {
|
15
|
+
background: #eef;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c { color: #998; font-style: italic } // Comment
|
19
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
20
|
+
.k { font-weight: bold } // Keyword
|
21
|
+
.o { font-weight: bold } // Operator
|
22
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
23
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
24
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
25
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
26
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
27
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
28
|
+
.ge { font-style: italic } // Generic.Emph
|
29
|
+
.gr { color: #a00 } // Generic.Error
|
30
|
+
.gh { color: #999 } // Generic.Heading
|
31
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
32
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
33
|
+
.go { color: #888 } // Generic.Output
|
34
|
+
.gp { color: #555 } // Generic.Prompt
|
35
|
+
.gs { font-weight: bold } // Generic.Strong
|
36
|
+
.gu { color: #aaa } // Generic.Subheading
|
37
|
+
.gt { color: #a00 } // Generic.Traceback
|
38
|
+
.kc { font-weight: bold } // Keyword.Constant
|
39
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
40
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
41
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
42
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
43
|
+
.m { color: #099 } // Literal.Number
|
44
|
+
.s { color: #d14 } // Literal.String
|
45
|
+
.na { color: #008080 } // Name.Attribute
|
46
|
+
.nb { color: #0086B3 } // Name.Builtin
|
47
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
48
|
+
.no { color: #008080 } // Name.Constant
|
49
|
+
.ni { color: #800080 } // Name.Entity
|
50
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
51
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
52
|
+
.nn { color: #555 } // Name.Namespace
|
53
|
+
.nt { color: #000080 } // Name.Tag
|
54
|
+
.nv { color: #008080 } // Name.Variable
|
55
|
+
.ow { font-weight: bold } // Operator.Word
|
56
|
+
.w { color: #bbb } // Text.Whitespace
|
57
|
+
.mf { color: #099 } // Literal.Number.Float
|
58
|
+
.mh { color: #099 } // Literal.Number.Hex
|
59
|
+
.mi { color: #099 } // Literal.Number.Integer
|
60
|
+
.mo { color: #099 } // Literal.Number.Oct
|
61
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
62
|
+
.sc { color: #d14 } // Literal.String.Char
|
63
|
+
.sd { color: #d14 } // Literal.String.Doc
|
64
|
+
.s2 { color: #d14 } // Literal.String.Double
|
65
|
+
.se { color: #d14 } // Literal.String.Escape
|
66
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
67
|
+
.si { color: #d14 } // Literal.String.Interpol
|
68
|
+
.sx { color: #d14 } // Literal.String.Other
|
69
|
+
.sr { color: #009926 } // Literal.String.Regex
|
70
|
+
.s1 { color: #d14 } // Literal.String.Single
|
71
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
72
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
73
|
+
.vc { color: #008080 } // Name.Variable.Class
|
74
|
+
.vg { color: #008080 } // Name.Variable.Global
|
75
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
76
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
77
|
+
}
|
78
|
+
|
79
|
+
.highlighter-rouge {
|
80
|
+
background-color: whitesmoke;
|
81
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-theme-collider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Brown
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- _sass/jekyll-theme-collider/generic/_font.scss
|
112
112
|
- _sass/jekyll-theme-collider/generic/_normalize.scss
|
113
113
|
- _sass/jekyll-theme-collider/helpers/_helpers.scss
|
114
|
+
- _sass/jekyll-theme-collider/helpers/_syntax-highlighting.scss
|
114
115
|
- _sass/jekyll-theme-collider/jekyll-theme-collider.scss
|
115
116
|
- _sass/jekyll-theme-collider/settings/_colors.scss
|
116
117
|
- assets/css/main.scss
|