hitchens-theme 0.3.0 → 0.4.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 +4 -4
- data/README.md +41 -7
- data/_layouts/default.html +2 -0
- data/_layouts/home.html +2 -2
- data/_layouts/post.html +2 -2
- data/_sass/_base.scss +5 -0
- data/_sass/_masthead.scss +5 -1
- data/_sass/_menu.scss +1 -1
- data/_sass/_post-list.scss +8 -1
- data/assets/images/icon-512.png +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c006554db8f66b93069232876cb2cca5e3143cb6
|
4
|
+
data.tar.gz: 74dcf4f4beb473a23d4263b4f680a884ea3a93da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce735aa5077c74be2471c2e432ff71ca986900a5c87cf82652897e9c49b99525dcc05e2cdfab5b8565900fbc044d82c146003a8fe3468663a14b87dc10039e4c
|
7
|
+
data.tar.gz: def0e9bdfbb2353968158d39fa649a96f332e1f271f94660c595989dc4f1f7661d57d0c40d627d21f8e96111471b60e82406e52790119b14e70b37310612a9c7
|
data/README.md
CHANGED
@@ -1,14 +1,31 @@
|
|
1
|
-
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: "Hitchens"
|
4
|
+
---
|
2
5
|
|
3
|
-
|
6
|
+
An inarguably well-designed [Jekyll](http://jekyllrb.com) theme.
|
4
7
|
|
5
|
-
|
8
|
+

|
6
9
|
|
7
10
|
Undoubtably one of the great minds of our time, [Christopher Hitchens](https://en.wikipedia.org/wiki/Christopher_Hitchens) challenged his readers to think deeply on topics of politics, religion, war, and science. This Jekyll theme's design is inspired by the trade paperback version his book, [Arguably](https://en.wikipedia.org/wiki/Arguably), and is dedicated to his memory.
|
8
11
|
|
9
|
-
##
|
12
|
+
## Quick Start
|
10
13
|
|
11
|
-
|
14
|
+
This theme is, itself, a Jekyll blog, meaning the code base you see has everything you need to run a Jekyll powered blog!
|
15
|
+
|
16
|
+
To get started quickly, follow the instructions below:
|
17
|
+
|
18
|
+
<iframe src="https://ghbtns.com/github-btn.html?user=patdryburgh&repo=hitchens&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>
|
19
|
+
|
20
|
+
1. Click the `Fork` button above;
|
21
|
+
2. Go to your forked repo's `Settings` screen;
|
22
|
+
3. Scroll down to the `GitHub Pages` section;
|
23
|
+
4. Under `Source`, select the `Master` branch;
|
24
|
+
5. Hit `Save`.
|
25
|
+
|
26
|
+
## Manual Installation
|
27
|
+
|
28
|
+
If you're comfortable in the command line, add this line to your Jekyll site's `Gemfile`:
|
12
29
|
|
13
30
|
```ruby
|
14
31
|
gem "hitchens-theme"
|
@@ -119,6 +136,20 @@ To use the post layout, add the following to your post's [front matter](https://
|
|
119
136
|
layout: post
|
120
137
|
```
|
121
138
|
|
139
|
+
### Icons
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
The [JSON Feed spec](https://jsonfeed.org/version/1) states that feeds should include an icon. To add your icon, add the following line in your site's `_config.yml` file:
|
144
|
+
|
145
|
+
```
|
146
|
+
feed_icon: /assets/images/icon-512.png
|
147
|
+
```
|
148
|
+
|
149
|
+
Then, replace the `/assets/images/icon-512.png` file with your own image.
|
150
|
+
|
151
|
+
|
152
|
+
|
122
153
|
### Credits
|
123
154
|
|
124
155
|
The theme credits that appear at the bottom of each page can be turned off by including the following line in your site's `_config.yml` file:
|
@@ -137,7 +168,7 @@ A [copy of the license](https://github.com/patdryburgh/hitchens/blob/master/asse
|
|
137
168
|
|
138
169
|
## Contributing & Requesting Features
|
139
170
|
|
140
|
-
Bug reports, feature requests, and pull requests are welcome on GitHub at https://github.com/patdryburgh/hitchens.
|
171
|
+
Bug reports, feature requests, and pull requests are welcome on GitHub at [https://github.com/patdryburgh/hitchens](https://github.com/patdryburgh/hitchens).
|
141
172
|
|
142
173
|
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.
|
143
174
|
|
@@ -149,5 +180,8 @@ The theme is setup just like a normal Jekyll site. To test the theme, run `bundl
|
|
149
180
|
|
150
181
|
## License
|
151
182
|
|
152
|
-
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
183
|
+
The code for this theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
184
|
+
|
185
|
+
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).
|
153
186
|
|
187
|
+
Graphics are released to the public domain.
|
data/_layouts/default.html
CHANGED
@@ -10,6 +10,8 @@
|
|
10
10
|
|
11
11
|
<link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}?{{ site.time | date: '%s%N' }}">
|
12
12
|
|
13
|
+
<link rel="apple-touch-icon" href="{{ site.icon }}">
|
14
|
+
|
13
15
|
{%- if jekyll.environment == 'production' and site.google_analytics -%}
|
14
16
|
{%- include google-analytics.html -%}
|
15
17
|
{%- endif -%}
|
data/_layouts/home.html
CHANGED
@@ -44,13 +44,13 @@ layout: default
|
|
44
44
|
|
45
45
|
<div class="post-pagination">
|
46
46
|
{% if paginator.next_page %}
|
47
|
-
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">⟨
|
47
|
+
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">⟨ Older</a>
|
48
48
|
{% else %}
|
49
49
|
<span> </span>
|
50
50
|
{% endif %}
|
51
51
|
<span class="pagination-number">{{ paginator.page }} of {{ paginator.total_pages }}</span>
|
52
52
|
{% if paginator.previous_page %}
|
53
|
-
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer
|
53
|
+
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer ⟩</a>
|
54
54
|
{% else %}
|
55
55
|
<span> </span>
|
56
56
|
{% endif %}
|
data/_layouts/post.html
CHANGED
@@ -10,11 +10,11 @@ layout: default
|
|
10
10
|
|
11
11
|
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
|
12
12
|
|
13
|
-
{%
|
13
|
+
{% if page.title != "" %}
|
14
14
|
<h1 class="post-title divided p-name" itemprop="name headline">
|
15
15
|
{{ page.title }}
|
16
16
|
</h1>
|
17
|
-
{%
|
17
|
+
{% endif %}
|
18
18
|
|
19
19
|
<div class="post-content e-content" itemprop="articleBody">
|
20
20
|
{{ content }}
|
data/_sass/_base.scss
CHANGED
data/_sass/_masthead.scss
CHANGED
@@ -2,18 +2,22 @@
|
|
2
2
|
background: $brand-color;
|
3
3
|
box-sizing: border-box;
|
4
4
|
min-height: 50vh;
|
5
|
-
padding:
|
5
|
+
padding: 2em;
|
6
6
|
position: relative;
|
7
7
|
|
8
8
|
display: flex;
|
9
9
|
flex-direction: column;
|
10
10
|
justify-content: center;
|
11
11
|
text-align: center;
|
12
|
+
@media screen and (min-width: $on-laptop) {
|
13
|
+
padding: 6em 2em;
|
14
|
+
}
|
12
15
|
}
|
13
16
|
|
14
17
|
.site-masthead h1 {
|
15
18
|
font-size: 3em;
|
16
19
|
margin-bottom: 0;
|
20
|
+
margin-top: 0;
|
17
21
|
@media (min-width: $on-tablet) {
|
18
22
|
font-size: 6em;
|
19
23
|
}
|
data/_sass/_menu.scss
CHANGED
data/_sass/_post-list.scss
CHANGED
@@ -29,6 +29,11 @@
|
|
29
29
|
@media (min-width: $on-tablet) {
|
30
30
|
padding: .25em 0;
|
31
31
|
}
|
32
|
+
h1 {
|
33
|
+
font-size: 1em;
|
34
|
+
margin-bottom: 0;
|
35
|
+
margin-top: 0;
|
36
|
+
}
|
32
37
|
}
|
33
38
|
|
34
39
|
.post-link__title + .post-link__excerpt {
|
@@ -41,9 +46,11 @@
|
|
41
46
|
display: flex;
|
42
47
|
flex-direction: row;
|
43
48
|
justify-content: space-between;
|
44
|
-
|
49
|
+
text-align: center;
|
50
|
+
> * {
|
45
51
|
flex-grow: 1;
|
46
52
|
flex-basis: 0;
|
53
|
+
padding: 1em 0;
|
47
54
|
}
|
48
55
|
a {
|
49
56
|
text-decoration: none;
|
Binary file
|
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.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pat Dryburgh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- assets/fonts/eb-garamond-v9-latin-regular.woff
|
90
90
|
- assets/fonts/eb-garamond-v9-latin-regular.woff2
|
91
91
|
- assets/images/divider.svg
|
92
|
+
- assets/images/icon-512.png
|
92
93
|
homepage: https://github.com/patdryburgh/hitchens
|
93
94
|
licenses:
|
94
95
|
- MIT
|