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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a44b2fbee7f856bab2e1bbb8730259c12603459d
4
- data.tar.gz: ef4e540d2cdd6843e2b608222bc2da1bb8a745a0
3
+ metadata.gz: c006554db8f66b93069232876cb2cca5e3143cb6
4
+ data.tar.gz: 74dcf4f4beb473a23d4263b4f680a884ea3a93da
5
5
  SHA512:
6
- metadata.gz: 3d2f7145178c2dbf3fc02f13565892831cf839820d77ef3cea3a14605cfb0985a5eec46c4c24801989e9f0904f48c5078827822869eafe502d4a6b8c4e4f9948
7
- data.tar.gz: f7f58b53a7eafef024dc1288c64c82662f7b328e748ee2eb62c6f538e5818be37622560e82b2c48e06610041a72ab2cb1b0f12902e99bf64c0819d9d4092ac90
6
+ metadata.gz: ce735aa5077c74be2471c2e432ff71ca986900a5c87cf82652897e9c49b99525dcc05e2cdfab5b8565900fbc044d82c146003a8fe3468663a14b87dc10039e4c
7
+ data.tar.gz: def0e9bdfbb2353968158d39fa649a96f332e1f271f94660c595989dc4f1f7661d57d0c40d627d21f8e96111471b60e82406e52790119b14e70b37310612a9c7
data/README.md CHANGED
@@ -1,14 +1,31 @@
1
- # Hitchens
1
+ ---
2
+ layout: page
3
+ title: "Hitchens"
4
+ ---
2
5
 
3
- ![Hitchens Preview](https://raw.githubusercontent.com/patdryburgh/hitchens/master/screenshot.png?token=AAt3ZQiWog3NMOcTFnTp6ZGzirPSnoWVks5bayFOwA%3D%3D)
6
+ An inarguably well-designed [Jekyll](http://jekyllrb.com) theme.
4
7
 
5
- An inarguably well-designed Jekyll theme.
8
+ ![Hitchens Preview](https://raw.githubusercontent.com/patdryburgh/hitchens/master/screenshot.png)
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
- ## Installation
12
+ ## Quick Start
10
13
 
11
- Add this line to your Jekyll site's `Gemfile`:
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.
@@ -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">&lang; Older</a>
47
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl }}" class="pagination-next btn">&lang;&nbsp;Older</a>
48
48
  {% else %}
49
49
  <span>&nbsp;</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 &rang;</a>
53
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl }}" class="pagination-previous btn">Newer&nbsp;&rang;</a>
54
54
  {% else %}
55
55
  <span>&nbsp;</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
- {% unless page.title == "" %}
13
+ {% if page.title != "" %}
14
14
  <h1 class="post-title divided p-name" itemprop="name headline">
15
15
  {{ page.title }}
16
16
  </h1>
17
- {% endunless %}
17
+ {% endif %}
18
18
 
19
19
  <div class="post-content e-content" itemprop="articleBody">
20
20
  {{ content }}
data/_sass/_base.scss CHANGED
@@ -5,6 +5,11 @@ body {
5
5
  line-height: 1.5;
6
6
  }
7
7
 
8
+ h1 {
9
+ font-size: 3em;
10
+ margin: .5em auto;
11
+ }
12
+
8
13
  h2 {
9
14
  font-size: 2em;
10
15
  margin: 1em auto;
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: 8em 2em;
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
@@ -1,5 +1,5 @@
1
1
  .site-navigation {
2
- margin-top: 4rem;
2
+ margin-top: 2rem;
3
3
  }
4
4
 
5
5
  .site-navigation ul {
@@ -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.3.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-12 00:00:00.000000000 Z
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