tale 0.1.2 → 0.1.3

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: 343cdd488c3dee396bea05be636e0102cc2ea4ff
4
- data.tar.gz: 5cb34e38f46ffa88d6b947f88aa264d44b1cc43e
3
+ metadata.gz: 8ba67115e4abe7c28c6bc048ca383b627690ffe1
4
+ data.tar.gz: 950df5d39f0b9ef0881206f23262ff12a3a18a8e
5
5
  SHA512:
6
- metadata.gz: 86bd492e9d498295e23470a1377eda958e0e6b5b20efc6486edfc21656e69cfad8f340fc326e97a9dbdd953302ed0955098e28e741b245276e1487564c57335f
7
- data.tar.gz: f7f354946a9a81635029d9e026dbf118a703abe4c8779d94370b7cc70a5f8a4d5d30435ab980511a99e4fb087109099c8993bccd9f80c5377cbb21c222a73093
6
+ metadata.gz: 4f98ee3326f1579795c2d59962d040a6dd6573b322c3be66b864dd734ab5418a809d91126e83a62d42e86146199a485b53ef4961f26888b8ea81930f5982c206
7
+ data.tar.gz: 38c5b3147121bdfedc2db3fe84109d97fb5ab333fcf77aa31ee1b2815b97f2f0a453c5721bdae4c5721781d8a80dc88e6ce1637abfa55334c508e7b016234a12
data/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Tale
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/tale.svg)](https://badge.fury.io/rb/tale)
4
+
2
5
  Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here](https://chesterhow.github.io/tale/).
3
6
 
4
7
  ![Tale screenshot](http://i.imgur.com/pXZrtmo.png)
@@ -12,35 +15,82 @@ Tale is a minimal Jekyll theme curated for storytellers. Checkout the demo [here
12
15
  - Pagination of posts
13
16
 
14
17
  ## Installation
15
- ### As a Jekyll theme
18
+ There are 3 ways to install this theme
19
+
20
+ 1. Install it as a Ruby Gem (for self-hosted sites)
21
+ 2. Install it with the `jekyll-remote-theme` plugin (for GitHub Pages hosted sites)
22
+ 3. Fork the project directly
23
+
24
+ ### Ruby Gem method
16
25
  1. Add this line to your `Gemfile`:
17
26
 
18
27
  ```ruby
19
28
  gem "tale"
20
29
  ```
21
30
 
22
- 2. In `_config.yml` replace the `minima` theme with `tale`:
31
+ 2. Install the theme's gems and dependencies:
32
+
33
+ ```bash
34
+ $ bundle
35
+ ```
36
+
37
+ 3. In `_config.yml` add these lines:
23
38
 
24
39
  ```yaml
25
- theme: tale
40
+ theme: tale
41
+
42
+ permalink: /:year-:month-:day/:title
43
+ paginate: 5
44
+ ```
45
+
46
+ Remove any other `theme:` lines.
47
+
48
+ 4. Rename `index.md` to `index.html`. Without this, the `jekyll-paginate` gem will not work.
49
+
50
+ 5. In `about.md`, change the `layout:` field to `post`:
51
+
52
+ ```Markdown
53
+ layout: post
26
54
  ```
27
55
 
28
- 3. Install the theme's gems and dependencies:
56
+ ### GitHub Pages method
57
+ 1. Add these 2 lines in to your `Gemfile`:
58
+
59
+ ```ruby
60
+ gem "jekyll-remote-theme"
61
+ gem "jekyll-paginate"
62
+ ```
63
+
64
+ 2. Install the newly added gems:
29
65
 
30
66
  ```bash
31
67
  $ bundle
32
68
  ```
33
69
 
70
+ 3. In `_config.yml` add these lines:
71
+
72
+ ```yaml
73
+ remote_theme: chesterhow/tale
74
+
75
+ permalink: /:year-:month-:day/:title
76
+ paginate: 5
77
+
78
+ plugins:
79
+ - jekyll-paginate
80
+ - jekyll-remote-theme
81
+ ```
82
+
83
+ Remove any other `theme:` or `remote_theme:` lines.
84
+
34
85
  4. Rename `index.md` to `index.html`. Without this, the `jekyll-paginate` gem will not work.
35
86
 
36
- 5. Add these 2 lines in to `_config.yml`:
87
+ 5. In `about.md`, change the `layout:` field to `post`:
37
88
 
38
- ```yaml
39
- permalink: /:year-:month-:day/:title
40
- paginate: 5
89
+ ```Markdown
90
+ layout: post
41
91
  ```
42
92
 
43
- ### As a Fork
93
+ ### Fork method
44
94
  1. Fork this repository
45
95
 
46
96
  2. Delete the unnecessary files/folders: `CODE_OF_CONDUCT.md`, `LICENSE`, `README.md`, `tale.gemspec`
@@ -48,7 +98,7 @@ paginate: 5
48
98
  3. Delete the `baseurl` line in `_config.yml`:
49
99
 
50
100
  ```yaml
51
- baseurl: "/tale" # delete this line
101
+ baseurl: "/tale" # delete this line
52
102
  ```
53
103
 
54
104
  ## Usage
@@ -13,8 +13,8 @@
13
13
  <li><a href="{{ '/about' | prepend: site.baseurl }}">About</a></li>
14
14
  <li><a href="{{ site.baseurl }}/">Posts</a></li>
15
15
  </ul>
16
- </div>
17
- </nav>
16
+ </div>
17
+ </nav>
18
18
 
19
19
  <main>
20
20
  {{ content }}
@@ -11,7 +11,7 @@ layout: default
11
11
  <div class="catalogue-line"></div>
12
12
 
13
13
  <p>
14
- {{ post.content | truncatewords: 30 | strip_html }}
14
+ {{ post.content | strip_html | truncatewords: 30 }}
15
15
  </p>
16
16
 
17
17
  </div>
@@ -13,6 +13,7 @@ body {
13
13
  html {
14
14
  font-family: $serif-primary;
15
15
  font-size: 14px;
16
+ overflow-y: scroll;
16
17
 
17
18
  @media (min-width: 600px) {
18
19
  font-size: 16px;
@@ -48,4 +48,16 @@
48
48
  font-style: normal;
49
49
  text-align: center;
50
50
  }
51
+
52
+ // CSS for making emoji inline
53
+ img.emoji {
54
+ display: inline-block;
55
+ left: 0;
56
+ transform: none;
57
+ width: 1rem;
58
+ height: 1rem;
59
+ vertical-align: text-top;
60
+ padding: 0;
61
+ margin: 0;
62
+ }
51
63
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tale
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chester How
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-21 00:00:00.000000000 Z
11
+ date: 2018-06-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.5.1
115
+ rubygems_version: 2.5.2.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: Tale is a minimal Jekyll theme curated for storytellers.