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 +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +77 -0
- data/_includes/custom_comments_provider.html +3 -0
- data/_includes/head.html +8 -1
- data/_layouts/page.html +6 -0
- data/_layouts/post.html +6 -0
- data/_sass/whiteglass.scss +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951c24d99eeb70c6ff4795f28e7300d8027d40e6
|
4
|
+
data.tar.gz: c2cd219559e3256049ff5eecb57f538a076ca3e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34f85403dcfa8292f5f431274f4f79cc3ce85ff8b2573c21b8f3ba536ee6aebfe65ffe865011943b2b6e75e23735be0107c38ee6eea858c30bc26416b62d633a
|
7
|
+
data.tar.gz: e69ca9cc52f111c4bdfa3d60a3ddd87bdfadcb0d48f15b262462f93c5a631bb760d6651c0e57ac2206dae2b9e8d870093b5d77e57babbc28fbfbb1b795eb192f
|
data/CHANGELOG.md
CHANGED
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
|
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 %}
|
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
data/_layouts/post.html
CHANGED
data/_sass/whiteglass.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// Define defaults for each variable.
|
2
|
-
$base-font-family: Bitter, "Apple SD Gothic Neo",
|
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.
|
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-
|
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.
|
149
|
+
rubygems_version: 2.6.13
|
149
150
|
signing_key:
|
150
151
|
specification_version: 4
|
151
152
|
summary: Minimal, responsive Jekyll theme for hackers.
|