hitchens-theme 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/README.md +15 -8
- data/_layouts/default.html +2 -0
- data/_layouts/home.html +1 -1
- data/_sass/_article.scss +8 -0
- data/_sass/_base.scss +1 -1
- data/_sass/_font.scss +1 -0
- data/_sass/_masthead.scss +3 -11
- data/_sass/_menu.scss +8 -1
- data/_sass/_post-list.scss +16 -2
- data/_sass/_search.scss +14 -0
- data/_sass/_variables.scss +4 -4
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2e844b3f6fe70e18374f9f9e25a60d738c2222bf525bda13241c6e46fcf931ae
|
4
|
+
data.tar.gz: a9bcc6ce3ebe128742d3ca4661f033aa7bfbfcab1dcaf1dfeb87b6413c3688ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7962cd43f7857678d2e944deaefbfd230bf94301a4847fd34c70fa22df53d0a19823a1f205f34a9ac431ede6a0436bf1711806c872d64020a98bc4fed52cc5fc
|
7
|
+
data.tar.gz: d9d1b8e50c45c60553db5fc9e4db67ebe933a7b2b721535d789c3a9eab10fc2f95f816902604ada3ed7a80ade45b95bfefcf24b887cdf739087b70a17acf2a67
|
data/README.md
CHANGED
@@ -20,26 +20,33 @@ To get started quickly, follow the instructions below:
|
|
20
20
|
3. Scroll down to the `GitHub Pages` section;
|
21
21
|
4. Under `Source`, select the `Master` branch;
|
22
22
|
5. Hit `Save`.
|
23
|
+
6. Follow [Jekyll's instructions to configure your new Jekyll site](https://jekyllrb.com/docs/configuration/).
|
23
24
|
|
24
25
|
## Manual Installation
|
25
26
|
|
26
|
-
If you'
|
27
|
+
If you've already created your Jekyll site or are comfortable with the command line, you can follow [Jekyll's Quickstart instructions](https://jekyllrb.com/docs/) add this line to your Jekyll site's `Gemfile`:
|
27
28
|
|
28
29
|
```ruby
|
29
30
|
gem "hitchens-theme"
|
30
31
|
```
|
31
32
|
|
32
|
-
And add
|
33
|
+
And add the following lines to your Jekyll site's `_config.yml`:
|
33
34
|
|
34
35
|
```yaml
|
35
36
|
theme: hitchens-theme
|
36
37
|
```
|
37
38
|
|
38
|
-
|
39
|
+
Depending on your site's configuration, you may also need to add:
|
40
|
+
|
41
|
+
```yaml
|
42
|
+
ignore_theme_config: true
|
43
|
+
```
|
44
|
+
|
45
|
+
And then on the command line, execute:
|
39
46
|
|
40
47
|
$ bundle
|
41
48
|
|
42
|
-
Or install
|
49
|
+
Or install the theme yourself as:
|
43
50
|
|
44
51
|
$ gem install hitchens-theme
|
45
52
|
|
@@ -47,13 +54,13 @@ Or install it yourself as:
|
|
47
54
|
|
48
55
|
### Home Layout
|
49
56
|
|
50
|
-
The `home` layout presents a list of articles ordered chronologically.
|
57
|
+
The `home` layout presents a list of articles ordered chronologically. The theme uses [Jekyll's built-in pagination](https://jekyllrb.com/docs/pagination/#enable-pagination) which can be configured in your `_config.yml` file.
|
51
58
|
|
52
59
|
The masthead of the home page is derived from the `title` and `description` set in your site's `_config.yml` file.
|
53
60
|
|
54
61
|
#### Navigation
|
55
62
|
|
56
|
-
To include navigation in your site's masthead:
|
63
|
+
To include a navigation menu in your site's masthead and footer:
|
57
64
|
|
58
65
|
1. Create a `_data` directory in the root of your site.
|
59
66
|
2. Add a `menu.yml` file to the `_data` directory.
|
@@ -154,7 +161,7 @@ hide_credits: true
|
|
154
161
|
|
155
162
|
### Search
|
156
163
|
|
157
|
-
The theme uses a [custom DuckDuckGo Search Form](https://patdryburgh.com
|
164
|
+
The theme uses a [custom DuckDuckGo Search Form](https://ddg.patdryburgh.com) that can be turned off by including the following line in your site's `_config.yml` file:
|
158
165
|
|
159
166
|
```
|
160
167
|
hide_search: true
|
@@ -182,7 +189,7 @@ The theme is setup just like a normal Jekyll site. To test the theme, run `bundl
|
|
182
189
|
|
183
190
|
## License
|
184
191
|
|
185
|
-
The code for this theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
192
|
+
The code for this theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
186
193
|
|
187
194
|
The font, EB Garamond, is Copyright 2017 The EB Garamond Project Authors and licensed under the [SIL Open Font License Version 1.1](https://github.com/patdryburgh/hitchens/blob/master/assets/fonts/OFL.txt).
|
188
195
|
|
data/_layouts/default.html
CHANGED
@@ -8,6 +8,8 @@
|
|
8
8
|
|
9
9
|
<title>{{ site.title }}{% if page.title and page.title != "" %} — {{ page.title }}{% endif %}</title>
|
10
10
|
|
11
|
+
{% if site.description %}<meta name="description" content="{{ site.description }}">{% endif %}
|
12
|
+
|
11
13
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}?{{ site.time | date: '%s%N' }}">
|
12
14
|
|
13
15
|
<link rel="apple-touch-icon" href="{{ site.icon }}">
|
data/_layouts/home.html
CHANGED
@@ -8,6 +8,7 @@ layout: default
|
|
8
8
|
{% include back-link.html %}
|
9
9
|
{% else %}
|
10
10
|
<header class="site-masthead">
|
11
|
+
{% include menu.html %}
|
11
12
|
{% if site.title %}
|
12
13
|
<h1>
|
13
14
|
{{ site.title }}
|
@@ -18,7 +19,6 @@ layout: default
|
|
18
19
|
{{ site.description }}
|
19
20
|
</h2>
|
20
21
|
{% endif %}
|
21
|
-
{% include menu.html %}
|
22
22
|
</header>
|
23
23
|
{% endif %}
|
24
24
|
|
data/_sass/_article.scss
CHANGED
data/_sass/_base.scss
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
body {
|
2
|
+
background: $brand-color;
|
2
3
|
color: $text-color;
|
3
4
|
font-family: $font-family;
|
4
5
|
font-size: 1.3125em;
|
@@ -151,7 +152,6 @@ figcaption {
|
|
151
152
|
text-align: center;
|
152
153
|
text-decoration: none;
|
153
154
|
text-transform: uppercase;
|
154
|
-
transition: all .125s ease-in-out;
|
155
155
|
&:hover,
|
156
156
|
&:focus {
|
157
157
|
background: lighten($brand-color, 2.5%);
|
data/_sass/_font.scss
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
font-family: 'EB Garamond';
|
4
4
|
font-style: normal;
|
5
5
|
font-weight: 400;
|
6
|
+
font-display: auto;
|
6
7
|
src: url('#{$asset_url}/fonts/eb-garamond-v9-latin-regular.eot'); /* IE9 Compat Modes */
|
7
8
|
src: local('EB Garamond Regular'), local('EBGaramond-Regular'),
|
8
9
|
url('#{$asset_url}/fonts/eb-garamond-v9-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
data/_sass/_masthead.scss
CHANGED
@@ -1,23 +1,14 @@
|
|
1
1
|
.site-masthead {
|
2
|
-
background: $brand-color;
|
3
2
|
box-sizing: border-box;
|
4
|
-
min-height: 50vh;
|
5
|
-
padding: 2em;
|
6
3
|
position: relative;
|
7
|
-
|
8
|
-
display: flex;
|
9
|
-
flex-direction: column;
|
10
|
-
justify-content: center;
|
11
4
|
text-align: center;
|
12
|
-
@media screen and (min-width: $on-laptop) {
|
13
|
-
padding: 6em 2em;
|
14
|
-
}
|
15
5
|
}
|
16
6
|
|
17
7
|
.site-masthead h1 {
|
18
8
|
font-size: 3em;
|
19
9
|
margin-bottom: 0;
|
20
|
-
margin-top:
|
10
|
+
margin-top: 1em;
|
11
|
+
padding: 0 2rem;
|
21
12
|
@media (min-width: $on-tablet) {
|
22
13
|
font-size: 6em;
|
23
14
|
}
|
@@ -27,6 +18,7 @@
|
|
27
18
|
color: $muted-text-color;
|
28
19
|
font-size: 1.25em;
|
29
20
|
margin: 0;
|
21
|
+
padding: 0 2rem;
|
30
22
|
@media (min-width: $on-tablet) {
|
31
23
|
font-size: 3em;
|
32
24
|
}
|
data/_sass/_menu.scss
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
.site-navigation {
|
2
2
|
margin-top: 2rem;
|
3
3
|
padding: 0 1rem;
|
4
|
+
&:hover,
|
5
|
+
&:focus-within {
|
6
|
+
a {
|
7
|
+
opacity: .7;
|
8
|
+
}
|
9
|
+
}
|
4
10
|
}
|
5
11
|
|
6
12
|
.site-navigation ul {
|
@@ -24,8 +30,9 @@
|
|
24
30
|
display: block;
|
25
31
|
padding: .25em .5em;
|
26
32
|
text-decoration: none;
|
33
|
+
transition: opacity .125s ease-in-out;
|
27
34
|
&:hover,
|
28
35
|
&:focus {
|
29
|
-
|
36
|
+
opacity: 1;
|
30
37
|
}
|
31
38
|
}
|
data/_sass/_post-list.scss
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
.post-list {
|
2
2
|
margin: 1em 0;
|
3
3
|
list-style: none;
|
4
|
+
&:hover,
|
5
|
+
&:focus-within {
|
6
|
+
.post-link {
|
7
|
+
opacity: .6;
|
8
|
+
}
|
9
|
+
}
|
4
10
|
}
|
5
11
|
|
6
12
|
.post-list li {
|
@@ -13,9 +19,10 @@
|
|
13
19
|
flex-direction: column-reverse;
|
14
20
|
text-decoration: none;
|
15
21
|
padding: .25em;
|
22
|
+
transition: opacity .125s ease-in-out;
|
16
23
|
&:hover,
|
17
24
|
&:focus {
|
18
|
-
|
25
|
+
opacity: 1 !important;
|
19
26
|
}
|
20
27
|
@media (min-width: $on-tablet) {
|
21
28
|
display: flex;
|
@@ -56,12 +63,19 @@
|
|
56
63
|
flex-basis: 0;
|
57
64
|
padding: 1em 0;
|
58
65
|
}
|
66
|
+
&:hover,
|
67
|
+
&:focus-within {
|
68
|
+
a {
|
69
|
+
opacity: .6;
|
70
|
+
}
|
71
|
+
}
|
59
72
|
a {
|
60
73
|
text-decoration: none;
|
61
74
|
text-transform: uppercase;
|
75
|
+
transition: opacity .125s ease-in-out;
|
62
76
|
&:hover,
|
63
77
|
&:focus {
|
64
|
-
|
78
|
+
opacity: 1;
|
65
79
|
}
|
66
80
|
}
|
67
81
|
}
|
data/_sass/_search.scss
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
}
|
6
6
|
|
7
7
|
#search__input {
|
8
|
+
background: transparent;
|
8
9
|
border: 0;
|
9
10
|
font: 1em $font-family;
|
10
11
|
padding: .5em;
|
@@ -17,4 +18,17 @@
|
|
17
18
|
|
18
19
|
#search button[type="submit"] {
|
19
20
|
display: none;
|
21
|
+
}
|
22
|
+
|
23
|
+
::-webkit-input-placeholder {
|
24
|
+
color: $muted-text-color;
|
25
|
+
}
|
26
|
+
::-moz-placeholder {
|
27
|
+
color: $muted-text-color;
|
28
|
+
}
|
29
|
+
:-ms-input-placeholder {
|
30
|
+
color: $muted-text-color;
|
31
|
+
}
|
32
|
+
:-moz-placeholder {
|
33
|
+
color: $muted-text-color;
|
20
34
|
}
|
data/_sass/_variables.scss
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
$brand-color: #
|
1
|
+
$brand-color: #fede00;
|
2
2
|
$highlight: lighten($brand-color, 35%);
|
3
3
|
$text-color: #0b0404;
|
4
|
-
$muted-text-color: #
|
4
|
+
$muted-text-color: #64644B;
|
5
5
|
$font-family: "EB Garamond", Garamond, "Times New Roman", serif;
|
6
6
|
|
7
7
|
$on-bigphone: 375px;
|
8
8
|
$on-tablet: 768px;
|
9
|
-
$on-laptop:
|
10
|
-
$on-desktop:
|
9
|
+
$on-laptop: 960px;
|
10
|
+
$on-desktop: 1200px;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hitchens-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Dryburgh
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1
|
33
|
+
version: '2.1'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,7 +52,7 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '12.0'
|
55
|
-
description:
|
55
|
+
description:
|
56
56
|
email:
|
57
57
|
- hello@patdryburgh.com
|
58
58
|
executables: []
|
@@ -97,7 +97,7 @@ homepage: https://github.com/patdryburgh/hitchens
|
|
97
97
|
licenses:
|
98
98
|
- MIT
|
99
99
|
metadata: {}
|
100
|
-
post_install_message:
|
100
|
+
post_install_message:
|
101
101
|
rdoc_options: []
|
102
102
|
require_paths:
|
103
103
|
- lib
|
@@ -112,9 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
|
116
|
-
|
117
|
-
signing_key:
|
115
|
+
rubygems_version: 3.1.4
|
116
|
+
signing_key:
|
118
117
|
specification_version: 4
|
119
118
|
summary: An inarguably well-designed theme for Jekyll.
|
120
119
|
test_files: []
|