jekyll-whiteglass 1.3.0 → 1.4.0

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: 15b5277d301cb8e5159afa6ae18ba45eadfc42a1
4
- data.tar.gz: 3a9f9bf5f3eab78a8b2d716c38c450e2b4b02c89
3
+ metadata.gz: 951c24d99eeb70c6ff4795f28e7300d8027d40e6
4
+ data.tar.gz: c2cd219559e3256049ff5eecb57f538a076ca3e1
5
5
  SHA512:
6
- metadata.gz: 746c9519d031b2721f38c841151b0add6875054cb3fbffc081436dd471877c11d345094d54a8d4e13ceb6885f14cb2a8266f1a4e3ff5c61ce451ad73200c036f
7
- data.tar.gz: 4d921d31d28ddad1029dd2adf9eeade55fe2459745b0a273bf6f53eeaa2952cf9ff6e1b1ee2400c8f5df41a1d8709bbc0513ca539f2f37bea73c98becf044e73
6
+ metadata.gz: 34f85403dcfa8292f5f431274f4f79cc3ce85ff8b2573c21b8f3ba536ee6aebfe65ffe865011943b2b6e75e23735be0107c38ee6eea858c30bc26416b62d633a
7
+ data.tar.gz: e69ca9cc52f111c4bdfa3d60a3ddd87bdfadcb0d48f15b262462f93c5a631bb760d6651c0e57ac2206dae2b9e8d870093b5d77e57babbc28fbfbb1b795eb192f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # ChangeLog
2
2
 
3
+ ## 1.4.0 (2017-11-01)
4
+
5
+ - Support YAML list for keywords (Fix #7)
6
+ - Add ability to provide a comments provider for pages and posts (#10)
7
+
3
8
  ## 1.3.0 (2017-02-20)
4
9
 
5
10
  - Fix typos of the theme description
data/README.md CHANGED
@@ -34,6 +34,64 @@ Or install it yourself as:
34
34
  gem install jekyll-whiteglass
35
35
  ```
36
36
 
37
+ ## Quick Start
38
+
39
+ 1. Generate a new Jekyll blog:
40
+
41
+ ``` sh
42
+ jekyll new blog --skip-bundle
43
+ cd blog
44
+ ```
45
+
46
+ 2. Edit `Gemfile` to use whiteglass theme:
47
+
48
+ ``` ruby
49
+ gem "jekyll-whiteglass"
50
+ ```
51
+
52
+ 3. Edit `_config.yml` to use whiteglass theme and its plugins:
53
+
54
+ ``` yaml
55
+ theme: jekyll-whiteglass
56
+ gems:
57
+ - jekyll-archives
58
+ - jekyll-paginate
59
+ - jekyll-sitemap
60
+
61
+ permalink: /:year/:month/:day/:title/
62
+ paginate_path: /posts/:num/
63
+ paginate: 5
64
+
65
+ jekyll-archives:
66
+ enabled:
67
+ - categories
68
+ layout: category_archives
69
+ permalinks:
70
+ category: /categories/:name/
71
+ ```
72
+
73
+ 4. Copy
74
+ [`index.html`](https://github.com/yous/whiteglass/blob/master/index.html),
75
+ [`about.md`](https://github.com/yous/whiteglass/blob/master/about.md),
76
+ [`archives.md`](https://github.com/yous/whiteglass/blob/master/archives.md),
77
+ [`feed.xml`](https://github.com/yous/whiteglass/blob/master/feed.xml), and
78
+ [`_data/navigation.yml`](https://github.com/yous/whiteglass/blob/master/_data/navigation.yml)
79
+ from the theme:
80
+
81
+ ``` sh
82
+ rm index.md
83
+ curl -L -O "https://github.com/yous/whiteglass/raw/master/{index.html,about.md,archives.md,feed.xml}"
84
+ curl -L --create-dirs -o _data/navigation.yml https://github.com/yous/whiteglass/raw/master/_data/navigation.yml
85
+ ```
86
+
87
+ 5. Install gems and you're good to go! The blog will be available on
88
+ `http://127.0.0.1:4000`.
89
+
90
+ ``` sh
91
+ bundle install
92
+ bundle exec jekyll serve
93
+ ```
94
+
37
95
  ## Usage
38
96
 
39
97
  ### Customization
@@ -159,6 +217,16 @@ feed:
159
217
 
160
218
  Then create `<your-site>/atom.xml` with the same content of `feed.xml` above.
161
219
 
220
+ ### Comments
221
+
222
+ whiteglass provides the ability to include your favourite commenting service, like [Disqus](https://disqus.com) or [Isso](https://posativ.org/isso).
223
+
224
+ To enable comments on pages and posts:
225
+ 1. Overwrite the `_includes/custom_comments_provider.html` with your custom provider of comments.
226
+ 2. Add `comments: true` to your `_config.yml`.
227
+
228
+ To disable comments on certain pages or posts specify `comments: false` in the front matter of the page or post.
229
+
162
230
  ### Metadata for SEO
163
231
 
164
232
  #### Keywords
@@ -172,6 +240,15 @@ title: How to configure jekyll-whiteglass
172
240
  keywords: jekyll, whiteglass, github pages
173
241
  ```
174
242
 
243
+ YAML list is also available:
244
+
245
+ ``` yaml
246
+ keywords:
247
+ - jekyll
248
+ - whiteglass
249
+ - github pages
250
+ ```
251
+
175
252
  #### Twitter
176
253
 
177
254
  - `site.twitter_username` sets `twitter:site` and `twitter:creator` meta tag
@@ -0,0 +1,3 @@
1
+ <hr />
2
+ <h1>Comments</h1>
3
+ <p>Insert your custom comment provider like <a href="https://disqus.com">Disqus</a> or <a href="https://posativ.org/isso">Isso</a> here.</p>
data/_includes/head.html CHANGED
@@ -8,7 +8,14 @@
8
8
  {% assign description = page.description | default: page.excerpt | default: site.description | strip_html | normalize_whitespace | escape %}
9
9
  <title>{{ title }}</title>
10
10
  <meta name="description" content="{{ description }}">
11
- {% if page.keywords %}<meta name="keywords" content="{{ page.keywords }}">{% endif %}
11
+ {% if page.keywords %}
12
+ {% if page.keywords.first %}
13
+ {% assign keywords = page.keywords | join: ',' %}
14
+ {% else %}
15
+ {% assign keywords = page.keywords %}
16
+ {% endif %}
17
+ <meta name="keywords" content="{{ keywords }}">
18
+ {% endif %}
12
19
 
13
20
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
14
21
  <link rel="canonical" href="{{ canonical }}">
data/_layouts/page.html CHANGED
@@ -11,4 +11,10 @@ layout: default
11
11
  {{ content }}
12
12
  </div>
13
13
 
14
+ {% if site.comments != false and page.comments != false %}
15
+ <div class="post-comments">
16
+ {% include custom_comments_provider.html %}
17
+ </div>
18
+ {% endif %}
19
+
14
20
  </article>
data/_layouts/post.html CHANGED
@@ -16,4 +16,10 @@ layout: default
16
16
  {{ content }}
17
17
  </div>
18
18
 
19
+ {% if site.comments != false and page.comments != false %}
20
+ <div class="post-comments" itemprop="comment">
21
+ {% include custom_comments_provider.html %}
22
+ </div>
23
+ {% endif %}
24
+
19
25
  </article>
@@ -1,5 +1,5 @@
1
1
  // Define defaults for each variable.
2
- $base-font-family: Bitter, "Apple SD Gothic Neo", AppleGothic, NanumBarunGothic, "Malgun Gothic", Dotum, sans-serif !default;
2
+ $base-font-family: Bitter, "Apple SD Gothic Neo", "Noto Sans", "Source Han Sans", "Noto Sans CJK JP", "Source Han Sans JP", "Noto Sans CJK KR", "Source Han Sans KR", NanumBarunGothic, AppleGothic, "Malgun Gothic", Dotum, sans-serif !default;
3
3
  $monospace-font-family: Monaco, Menlo, Consolas, "Courier New", DotumChe, monospace !default;
4
4
  $base-font-size: 16px !default;
5
5
  $base-font-weight: 400 !default;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-whiteglass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chayoung You
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-20 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -105,6 +105,7 @@ files:
105
105
  - LICENSE.txt
106
106
  - README.md
107
107
  - _includes/category_links.html
108
+ - _includes/custom_comments_provider.html
108
109
  - _includes/fonts.html
109
110
  - _includes/footer.html
110
111
  - _includes/footer_content.html
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  version: '0'
146
147
  requirements: []
147
148
  rubyforge_project:
148
- rubygems_version: 2.6.8
149
+ rubygems_version: 2.6.13
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: Minimal, responsive Jekyll theme for hackers.