jekyll-citoyensbourgbresse 1.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 +7 -0
- data/CHANGELOG.md +123 -0
- data/LICENSE.txt +21 -0
- data/README.md +381 -0
- data/_data/i18n.yml +70 -0
- data/_includes/category_links.html +21 -0
- data/_includes/custom_comments_provider.html +3 -0
- data/_includes/date.html +32 -0
- data/_includes/fonts.html +3 -0
- data/_includes/footer.html +11 -0
- data/_includes/footer_content.html +5 -0
- data/_includes/google_analytics.html +25 -0
- data/_includes/head.html +69 -0
- data/_includes/head_custom.html +0 -0
- data/_includes/header.html +20 -0
- data/_includes/i18n.html +17 -0
- data/_includes/pagination.html +11 -0
- data/_layouts/archive.html +39 -0
- data/_layouts/category_archives.html +40 -0
- data/_layouts/default.html +20 -0
- data/_layouts/feed.xml +97 -0
- data/_layouts/home.html +51 -0
- data/_layouts/page.html +20 -0
- data/_layouts/post.html +25 -0
- data/_sass/whiteglass/_base.scss +217 -0
- data/_sass/whiteglass/_layout.scss +226 -0
- data/_sass/whiteglass/_syntax-highlighting.scss +72 -0
- data/_sass/whiteglass.scss +47 -0
- data/assets/main.scss +49 -0
- metadata +173 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2428cefd9d28ee498f697eae3c7b8a68d4c8c824e823982b136f2a798b923086
|
4
|
+
data.tar.gz: 72143ed3cb81ef522f993e1a0963f2be2292e333d81712037d1441713041864a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5e720681c960941c4a9c76f1d3c86f5433c9ac9c77d2b31a296c8342e8fc79788ff270d7bbdd88f4522c7739f2a2e842f0a65094937c1add808a601d9fc885e8
|
7
|
+
data.tar.gz: 407747e2b6e41e6916bf1ab1822c2480d0f8f44d63f1e3b1a45af76431ef92df8fd49d4a8278aba72e92713a23ad04259ddd24ada0ab9ababc6e977fa8b60ad3
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
# ChangeLog
|
2
|
+
|
3
|
+
## 1.11.1 (2021-08-14)
|
4
|
+
|
5
|
+
- Don't break h1, h2, h3 for Korean
|
6
|
+
|
7
|
+
## 1.11.0 (2021-07-21)
|
8
|
+
|
9
|
+
- Update for Google Analytics 4
|
10
|
+
|
11
|
+
## 1.10.4 (2021-03-15)
|
12
|
+
|
13
|
+
- Add French translation (#42)
|
14
|
+
|
15
|
+
## 1.10.3 (2021-01-03)
|
16
|
+
|
17
|
+
- Don't ship _config.yml (#40)
|
18
|
+
- Include i18n.yml only under _data for gem
|
19
|
+
- Add missing robots.txt
|
20
|
+
|
21
|
+
## 1.10.2 (2020-10-16)
|
22
|
+
|
23
|
+
- Update Google Fonts to v2 API
|
24
|
+
|
25
|
+
## 1.10.1 (2020-08-31)
|
26
|
+
|
27
|
+
- Fix i18n.yml for de-AT (#39)
|
28
|
+
|
29
|
+
## 1.10.0 (2020-08-24)
|
30
|
+
|
31
|
+
- URL-encode the ampersand in the URL (#32)
|
32
|
+
- Internationalization of whiteglass (#11)
|
33
|
+
- Added German translation (#11)
|
34
|
+
- Add Korean translation
|
35
|
+
|
36
|
+
## 1.9.1 (2019-08-26)
|
37
|
+
|
38
|
+
- Restore colors of code in blockquotes
|
39
|
+
- Fix insufficient contrast of .post-continue
|
40
|
+
|
41
|
+
## 1.9.0 (2019-08-26)
|
42
|
+
|
43
|
+
- Adjust $grey-color to conform to WCAG 2.0 AA (#26)
|
44
|
+
- Support Jekyll 4.0
|
45
|
+
- Fix insufficient contrast in syntax highlighting (#26)
|
46
|
+
- Validate HTML, CSS, SVG files with html5validator
|
47
|
+
- Test accessibility of site with pa11y-ci
|
48
|
+
|
49
|
+
## 1.8.2 (2019-05-25)
|
50
|
+
|
51
|
+
- Use font-display: swap for Google Fonts
|
52
|
+
|
53
|
+
## 1.8.1 (2019-05-15)
|
54
|
+
|
55
|
+
- DNS prefetch for Google Fonts
|
56
|
+
|
57
|
+
## 1.8.0 (2019-05-07)
|
58
|
+
|
59
|
+
- Loosen version requirements for bundler
|
60
|
+
- Include basic meta tags even without facebook_app_id
|
61
|
+
- Update syntax highlighting CSS to rouge's GitHub style
|
62
|
+
|
63
|
+
## 1.7.1 (2018-09-13)
|
64
|
+
|
65
|
+
- Set proper word-wrap for long lines
|
66
|
+
|
67
|
+
## 1.7.0 (2018-05-24)
|
68
|
+
|
69
|
+
- Use Google Fonts CSS directly with preconnect
|
70
|
+
|
71
|
+
## 1.6.1 (2018-04-09)
|
72
|
+
|
73
|
+
- Fix lang attribute for post with external URL
|
74
|
+
|
75
|
+
## 1.6.0 (2018-04-09)
|
76
|
+
|
77
|
+
- Appropriately size h1s in the post body (#19)
|
78
|
+
- Update code for Web Font Loader
|
79
|
+
- Link external URL directly for each post (#20)
|
80
|
+
|
81
|
+
## 1.5.0 (2017-12-27)
|
82
|
+
|
83
|
+
- Support tags (#17)
|
84
|
+
|
85
|
+
## 1.4.2 (2017-11-21)
|
86
|
+
|
87
|
+
- Add some styling for tables (#15)
|
88
|
+
|
89
|
+
## 1.4.1 (2017-11-03)
|
90
|
+
|
91
|
+
- Disable comments by default
|
92
|
+
|
93
|
+
## 1.4.0 (2017-11-01)
|
94
|
+
|
95
|
+
- Support YAML list for keywords (Fix #7)
|
96
|
+
- Add ability to provide a comments provider for pages and posts (#10)
|
97
|
+
|
98
|
+
## 1.3.0 (2017-02-20)
|
99
|
+
|
100
|
+
- Fix typos of the theme description
|
101
|
+
- Add powered-by links to the footer
|
102
|
+
|
103
|
+
## 1.2.1 (2017-01-23)
|
104
|
+
|
105
|
+
- Make theme can be overridden (#2)
|
106
|
+
|
107
|
+
## 1.2.0 (2017-01-16)
|
108
|
+
|
109
|
+
- Use excerpt for meta tags (#1)
|
110
|
+
|
111
|
+
## 1.1.0 (2017-01-07)
|
112
|
+
|
113
|
+
- Make feed path configurable
|
114
|
+
- Empty `head_custom.html` to prevent adding comments
|
115
|
+
|
116
|
+
## 1.0.1 (2017-01-07)
|
117
|
+
|
118
|
+
- Fix RSS feed URL
|
119
|
+
- Bump jekyll-sitemap to 1.0
|
120
|
+
|
121
|
+
## 1.0.0 (2017-01-06)
|
122
|
+
|
123
|
+
- Initial release
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017-2019 Chayoung You
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,381 @@
|
|
1
|
+
# whiteglass
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/jekyll-whiteglass)
|
4
|
+
[](https://circleci.com/gh/yous/whiteglass/tree/master)
|
5
|
+
|
6
|
+
Minimal, responsive Jekyll theme for hackers.
|
7
|
+
|
8
|
+

|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's Gemfile:
|
13
|
+
|
14
|
+
``` ruby
|
15
|
+
gem "jekyll-whiteglass"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
``` yaml
|
21
|
+
theme: jekyll-whiteglass
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
``` sh
|
27
|
+
bundle
|
28
|
+
```
|
29
|
+
|
30
|
+
Or install it yourself as:
|
31
|
+
|
32
|
+
``` sh
|
33
|
+
gem install jekyll-whiteglass
|
34
|
+
```
|
35
|
+
|
36
|
+
## Quick Start
|
37
|
+
|
38
|
+
1. Go to [yous/whiteglass-template](https://github.com/yous/whiteglass-template).
|
39
|
+
2. Click "Use this template" button, and then create a repository.
|
40
|
+
3. Change the options defined in _config.yml. See [Configuration](https://github.com/yous/whiteglass-template#configuration)
|
41
|
+
section under whiteglass-template.
|
42
|
+
4. Push some content, then GitHub Actions will generate the site.
|
43
|
+
|
44
|
+
## Manual Setup
|
45
|
+
|
46
|
+
1. Generate a new Jekyll blog:
|
47
|
+
|
48
|
+
``` sh
|
49
|
+
jekyll new blog --skip-bundle
|
50
|
+
cd blog
|
51
|
+
```
|
52
|
+
|
53
|
+
2. Edit `Gemfile` to use whiteglass theme:
|
54
|
+
|
55
|
+
``` ruby
|
56
|
+
gem "jekyll-whiteglass"
|
57
|
+
```
|
58
|
+
|
59
|
+
3. Edit `_config.yml` to use whiteglass theme and its plugins:
|
60
|
+
|
61
|
+
``` yaml
|
62
|
+
theme: jekyll-whiteglass
|
63
|
+
plugins:
|
64
|
+
- jekyll-archives
|
65
|
+
- jekyll-paginate
|
66
|
+
- jekyll-sitemap
|
67
|
+
|
68
|
+
permalink: /:year/:month/:day/:title/
|
69
|
+
paginate_path: /posts/:num/
|
70
|
+
paginate: 5
|
71
|
+
|
72
|
+
jekyll-archives:
|
73
|
+
enabled:
|
74
|
+
- categories
|
75
|
+
- tags
|
76
|
+
layout: category_archives
|
77
|
+
permalinks:
|
78
|
+
category: /categories/:name/
|
79
|
+
tag: /tags/:name/
|
80
|
+
```
|
81
|
+
|
82
|
+
4. Copy
|
83
|
+
[`index.html`](https://github.com/yous/whiteglass/blob/master/index.html),
|
84
|
+
[`about.md`](https://github.com/yous/whiteglass/blob/master/about.md),
|
85
|
+
[`archives.md`](https://github.com/yous/whiteglass/blob/master/archives.md),
|
86
|
+
[`feed.xml`](https://github.com/yous/whiteglass/blob/master/feed.xml),
|
87
|
+
[`robots.txt`](https://github.com/yous/whiteglass/blob/master/robots.txt),
|
88
|
+
[`_data/i18n.yml`](https://github.com/yous/whiteglass/blob/master/_data/i18n.yml),
|
89
|
+
and [`_data/navigation.yml`](https://github.com/yous/whiteglass/blob/master/_data/navigation.yml)
|
90
|
+
from the theme:
|
91
|
+
|
92
|
+
``` sh
|
93
|
+
rm index.md
|
94
|
+
curl -L -O "https://github.com/yous/whiteglass/raw/master/{index.html,about.md,archives.md,feed.xml,robots.txt}"
|
95
|
+
curl -L --create-dirs -o _data/#1 "https://github.com/yous/whiteglass/raw/master/_data/{navigation.yml,i18n.yml}"
|
96
|
+
```
|
97
|
+
|
98
|
+
5. Install gems and you're good to go! The blog will be available on
|
99
|
+
`http://127.0.0.1:4000`.
|
100
|
+
|
101
|
+
``` sh
|
102
|
+
bundle install
|
103
|
+
bundle exec jekyll serve
|
104
|
+
```
|
105
|
+
|
106
|
+
## Upgrading
|
107
|
+
|
108
|
+
### From Versions < 1.9.1
|
109
|
+
|
110
|
+
Copy
|
111
|
+
[`_data/i18n.yml`](https://github.com/yous/whiteglass/blob/master/_data/i18n.yml)
|
112
|
+
from the theme.
|
113
|
+
|
114
|
+
## Deployment to GitHub Pages using Travis CI
|
115
|
+
|
116
|
+
This theme uses [jekyll-archives](https://github.com/jekyll/jekyll-archives) gem
|
117
|
+
which is [not supported by GitHub Pages](https://help.github.com/articles/configuring-jekyll-plugins/).
|
118
|
+
If you want to use full features like categories and tags, I recommend you to
|
119
|
+
use Travis CI or other CI services.
|
120
|
+
|
121
|
+
To deploy using Travis CI, first copy the [`.travis.yml`](https://github.com/yous/whiteglass/blob/master/.travis.yml)
|
122
|
+
of this repository. You can change `target-branch` (`gh-pages` by default) and
|
123
|
+
`on.branch` (`master` by default) as you want. If you want further
|
124
|
+
customization, see [Travis CI's documentation page](https://docs.travis-ci.com/user/deployment/pages/).
|
125
|
+
|
126
|
+
You'll see there's `github-token: $GITHUB_TOKEN`, and this is what you should
|
127
|
+
configure. Go to your [personal access tokens](https://github.com/settings/tokens)
|
128
|
+
page, and generate new token with `public_repo` or `repo` permission as you
|
129
|
+
need. Then go to Travis CI's settings page of your repository, and add a new
|
130
|
+
environment variable `GITHUB_TOKEN` with the value of the token you generated.
|
131
|
+
|
132
|
+
## Usage
|
133
|
+
|
134
|
+
### Customization
|
135
|
+
|
136
|
+
To override the default structure and style of whiteglass, simply create the
|
137
|
+
concerned directory at the root of your site, copy the file you wish to
|
138
|
+
customize to that directory, and then edit the file. e.g., to override the
|
139
|
+
[`_includes/footer_content.html`](_includes/footer_content.html) file to add
|
140
|
+
contents to footer, create an `_includes` directory, copy
|
141
|
+
`_includes/footer_content.html` from jekyll-whiteglass gem folder to
|
142
|
+
`<your-site>/_includes` and start editing that file.
|
143
|
+
|
144
|
+
For example, you can add favicons to `_includes/head_custom.html`:
|
145
|
+
|
146
|
+
``` html
|
147
|
+
<link rel="icon" type="image/x-icon" href="{{ "/favicon.ico" | relative_url }}">
|
148
|
+
<link rel="apple-touch-icon" href="{{ "/apple-touch-icon.png" | relative_url }}">
|
149
|
+
<link rel="apple-touch-icon" sizes="76x76" href="{{ "/apple-touch-icon-76x76.png" | relative_url }}">
|
150
|
+
<link rel="apple-touch-icon" sizes="120x120" href="{{ "/apple-touch-icon-120x120.png" | relative_url }}">
|
151
|
+
<link rel="apple-touch-icon" sizes="152x152" href="{{ "/apple-touch-icon-152x152.png" | relative_url }}">
|
152
|
+
<link rel="apple-touch-icon" sizes="180x180" href="{{ "/apple-touch-icon-180x180.png" | relative_url }}">
|
153
|
+
```
|
154
|
+
|
155
|
+
The site's default CSS is in the gem itself,
|
156
|
+
[`assets/main.scss`](assets/main.scss). To override the default CSS, the file
|
157
|
+
has to exist at your site source. Do either of the following:
|
158
|
+
|
159
|
+
- Create a new instance of `main.scss` at site source
|
160
|
+
- Create a new file `main.scss` at `<your-site>/assets/`
|
161
|
+
- Add the frontmatter dashes, and
|
162
|
+
- Add `@import "whiteglass";`, to `<your-site>/assets/main.scss`
|
163
|
+
- Add your custom CSS
|
164
|
+
- Download the file from this repo
|
165
|
+
- Create a new file `main.scss` at `<your-site>/assets/`
|
166
|
+
- Copy the contents at [`assets/main.scss`](assets/main.scss) onto the `main.scss` you just created, and edit away
|
167
|
+
- Copy directly from jekyll-whiteglass gem
|
168
|
+
- Go to your local jekyll-whiteglass gem installation directory (run `bundle show jekyll-whiteglass` to get the path to it)
|
169
|
+
- Copy the `assets/` folder from there into the root of `<your-site>`
|
170
|
+
- Change whatever values you want, inside `<your-site>/assets/main.scss`
|
171
|
+
|
172
|
+
### Locale
|
173
|
+
|
174
|
+
`site.lang` is used to declare the primary language for each web page within the
|
175
|
+
site.
|
176
|
+
|
177
|
+
`lang: en-US` sets the `lang` attribute for the site to the United States flavor
|
178
|
+
of English, while `en-GB` would be for the United Kingdom style of English.
|
179
|
+
Country codes are optional and the shorter variation `lang: en` is also
|
180
|
+
acceptable. You may want to write a post in different language, then add `lang`
|
181
|
+
attribute to the frontmatter of that post:
|
182
|
+
|
183
|
+
``` yaml
|
184
|
+
layout: post
|
185
|
+
title: "안녕하세요"
|
186
|
+
lang: ko
|
187
|
+
```
|
188
|
+
|
189
|
+
The date format and other fixed strings are translated using the `_data/i18n.yml` file. If your language is not yet included, feel free to open a [pull request](https://github.com/yous/whiteglass/pulls).
|
190
|
+
|
191
|
+
### Description
|
192
|
+
|
193
|
+
`site.description` describes the site. This is mainly used in meta descriptions
|
194
|
+
for improving SEO. Also, you can set `description` attribute for each post:
|
195
|
+
|
196
|
+
``` yaml
|
197
|
+
layout: post
|
198
|
+
title: Awesome Post
|
199
|
+
description: This is an awesome post.
|
200
|
+
```
|
201
|
+
|
202
|
+
If you don't specify `post.description`, then `post.excerpt` will be used if it
|
203
|
+
exist.
|
204
|
+
|
205
|
+
### External URL
|
206
|
+
|
207
|
+
`external-url` turns the title of your post to a link. Specify a URL which you
|
208
|
+
want to link to.
|
209
|
+
|
210
|
+
``` yaml
|
211
|
+
layout: post
|
212
|
+
title: Jekyll whiteglass theme
|
213
|
+
external-url: https://github.com/yous/whiteglass
|
214
|
+
```
|
215
|
+
|
216
|
+
Then the title of your post would look like a link with text
|
217
|
+
`Jekyll whiteglass theme →`. This also applies to your blog feed.
|
218
|
+
|
219
|
+
### Category
|
220
|
+
|
221
|
+
Each post can have `categories` attribute. It can be a string or an array. This
|
222
|
+
will be displayed on index, archive and each post, and provide a link to the
|
223
|
+
archive of category.
|
224
|
+
|
225
|
+
``` yaml
|
226
|
+
layout: post
|
227
|
+
title: Awesome Post
|
228
|
+
categories: Misc
|
229
|
+
```
|
230
|
+
|
231
|
+
``` yaml
|
232
|
+
layout: post
|
233
|
+
title: Another Awesome Post
|
234
|
+
categories:
|
235
|
+
- Misc
|
236
|
+
- Idea
|
237
|
+
```
|
238
|
+
|
239
|
+
### Tag
|
240
|
+
|
241
|
+
Each post can have `tags` attribute. It can be a string or an array. This will
|
242
|
+
be displayed on index, archive and each post, and provide a link to the archive
|
243
|
+
of tag.
|
244
|
+
|
245
|
+
``` yaml
|
246
|
+
layout: post
|
247
|
+
title: Awesome Post
|
248
|
+
tags: food
|
249
|
+
```
|
250
|
+
|
251
|
+
``` yaml
|
252
|
+
layout: post
|
253
|
+
title: Another Awesome Post
|
254
|
+
tags:
|
255
|
+
- food
|
256
|
+
- trip
|
257
|
+
```
|
258
|
+
|
259
|
+
### Feed
|
260
|
+
|
261
|
+
Create `<your-site>/feed.xml` with:
|
262
|
+
|
263
|
+
``` yaml
|
264
|
+
---
|
265
|
+
layout: feed
|
266
|
+
---
|
267
|
+
```
|
268
|
+
|
269
|
+
If you want to use another path for feed, you can specify a non-default path via
|
270
|
+
your site's config.
|
271
|
+
|
272
|
+
``` yaml
|
273
|
+
feed:
|
274
|
+
path: atom.xml
|
275
|
+
```
|
276
|
+
|
277
|
+
Then create `<your-site>/atom.xml` with the same content of `feed.xml` above.
|
278
|
+
|
279
|
+
### Comments
|
280
|
+
|
281
|
+
whiteglass provides the ability to include your favourite commenting service, like [Disqus](https://disqus.com) or [Isso](https://posativ.org/isso).
|
282
|
+
|
283
|
+
To enable comments on pages and posts:
|
284
|
+
1. Overwrite the `_includes/custom_comments_provider.html` with your custom provider of comments.
|
285
|
+
2. Add `comments: true` to your `_config.yml`.
|
286
|
+
|
287
|
+
To disable comments on certain pages or posts specify `comments: false` in the front matter of the page or post.
|
288
|
+
|
289
|
+
### Metadata for SEO
|
290
|
+
|
291
|
+
#### Keywords
|
292
|
+
|
293
|
+
Each post can have `keywords` attribute. This is a comma-separated list which is
|
294
|
+
used in meta descriptions for improving SEO.
|
295
|
+
|
296
|
+
``` yaml
|
297
|
+
layout: post
|
298
|
+
title: How to configure jekyll-whiteglass
|
299
|
+
keywords: jekyll, whiteglass, github pages
|
300
|
+
```
|
301
|
+
|
302
|
+
YAML list is also available:
|
303
|
+
|
304
|
+
``` yaml
|
305
|
+
keywords:
|
306
|
+
- jekyll
|
307
|
+
- whiteglass
|
308
|
+
- github pages
|
309
|
+
```
|
310
|
+
|
311
|
+
#### Twitter
|
312
|
+
|
313
|
+
- `site.twitter_username` sets `twitter:site` and `twitter:creator` meta tag
|
314
|
+
- `site.twitter_image` sets `twitter:image:src` meta tag
|
315
|
+
- `page.twitter_card.type` sets `twitter:card` meta tag (default: `summary`)
|
316
|
+
- If `page.twitter_card.type` is `gallery`, it sets `twitter:image0`, `twitter:image1`, `twitter:image2` and `twitter:image3` meta tags with `page.twitter_card.image`, `page.twitter_card.image1`, `page.twitter_card.image2` and `page.twitter_card.image3`, respectively
|
317
|
+
- If `page.twitter_card.type` is `photo`, `page.twitter_card.width` sets `twitter:image:width` meta tag and `page.twitter_card.height` sets `twitter:image:height` meta tag
|
318
|
+
- `page.twitter_card.creator` sets `twitter:creator` meta tag. It overrides `site.twitter_username`
|
319
|
+
- `page.twitter_card.image` sets `twitter:image:src` meta tag if `page.twitter_card.type` is not `gallery`. It overrides `site.twitter_image`
|
320
|
+
|
321
|
+
#### Facebook
|
322
|
+
|
323
|
+
- `site.facebook_app_id` sets `fb:admins` meta tag
|
324
|
+
- `site.facebook_page` sets `article:author` meta tag
|
325
|
+
- `site.facebook_image` sets `og:image` meta tag
|
326
|
+
- `page.facebook.image` sets `og:image` meta tag. It overrides `site.facebook_image`
|
327
|
+
|
328
|
+
### Navigation
|
329
|
+
|
330
|
+
To define header links, add titles and URLs under the `main` key in
|
331
|
+
`_data/navigation.yml`:
|
332
|
+
|
333
|
+
``` yaml
|
334
|
+
main:
|
335
|
+
- title: "About"
|
336
|
+
url: /about/
|
337
|
+
- title: "Archives"
|
338
|
+
url: /archives/
|
339
|
+
- title: "GitHub"
|
340
|
+
url: https://github.com/yous/whiteglass
|
341
|
+
```
|
342
|
+
|
343
|
+
### Enabling Google Analytics
|
344
|
+
|
345
|
+
To enable Google Analytics, add the following lines to your Jekyll site:
|
346
|
+
|
347
|
+
``` yaml
|
348
|
+
google_analytics: UA-NNNNNNNN-N
|
349
|
+
```
|
350
|
+
|
351
|
+
For Google Analytics 4, add the following lines:
|
352
|
+
|
353
|
+
``` yaml
|
354
|
+
google_analytics: G-NNNNNNNNNN
|
355
|
+
```
|
356
|
+
|
357
|
+
Replace `N`s with your specific ID.
|
358
|
+
|
359
|
+
## Contributing
|
360
|
+
|
361
|
+
Bug reports and pull requests are welcome on GitHub at
|
362
|
+
<https://github.com/yous/whiteglass>. This project is intended to be a safe,
|
363
|
+
welcoming space for collaboration, and contributors are expected to adhere to
|
364
|
+
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
365
|
+
|
366
|
+
## Development
|
367
|
+
|
368
|
+
To set up your environment to develop this theme, run `bundle install`.
|
369
|
+
|
370
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run
|
371
|
+
`bundle exec jekyll serve` and open your browser at
|
372
|
+
`http://localhost:4000/whiteglass/`. This starts a Jekyll server using your
|
373
|
+
theme. Add pages, documents, data, etc. like normal to test your theme's
|
374
|
+
contents. As you make modifications to your theme and to your content, your site
|
375
|
+
will regenerate and you should see the changes in the browser after a refresh,
|
376
|
+
just like normal.
|
377
|
+
|
378
|
+
## License
|
379
|
+
|
380
|
+
The theme is available as open source under the terms of the
|
381
|
+
[MIT License](http://opensource.org/licenses/MIT).
|
data/_data/i18n.yml
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
en:
|
2
|
+
date:
|
3
|
+
format: "%b %-d, %Y" # See http://ruby-doc.org/core/Time.html#method-i-strftime for possible date formatting strings
|
4
|
+
abbr_day_names: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]
|
5
|
+
abbr_month_names: ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
|
6
|
+
"Jul", "Aug", "Sep", "Oct", "Nov", "Dez"]
|
7
|
+
day_names: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
|
8
|
+
month_names: ["January", "February", "March", "April", "May", "June",
|
9
|
+
"July", "August", "September", "October", "November", "December"]
|
10
|
+
morelink: "Read on"
|
11
|
+
page-older: "Older"
|
12
|
+
page-newer: "Newer"
|
13
|
+
archive: "Blog Archive"
|
14
|
+
archive-category: "Archive of category '%1'"
|
15
|
+
archive-tag: "Archive of tag '%1'"
|
16
|
+
comments: "Comments"
|
17
|
+
de:
|
18
|
+
date:
|
19
|
+
format: "%e. %B %Y"
|
20
|
+
abbr_day_names: ["So", "Mo", "Di", "Mi", "Do", "Fr" , "Sa"]
|
21
|
+
abbr_month_names: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun",
|
22
|
+
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
|
23
|
+
day_names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
|
24
|
+
month_names: ["Januar", "Februar", "März", "April", "Mai", "Juni",
|
25
|
+
"Juli", "August", "September", "Oktober", "November", "Dezember"]
|
26
|
+
morelink: "Weiterlesen"
|
27
|
+
page-older: "Ältere Beiträge"
|
28
|
+
page-newer: "Neuere Beiträge"
|
29
|
+
archive: "Blog Archiv"
|
30
|
+
archive-category: "Archiv der Kategorie '%1'"
|
31
|
+
archive-tag: "Archiv des Tags '%1'"
|
32
|
+
comments: "Kommentare"
|
33
|
+
de-AT:
|
34
|
+
date:
|
35
|
+
month_names: ["Jänner", "Februar", "März", "April", "Mai", "Juni",
|
36
|
+
"Juli", "August", "September", "Oktober", "November", "Dezember"]
|
37
|
+
abbr_month_names: ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun",
|
38
|
+
"Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
|
39
|
+
ko:
|
40
|
+
date:
|
41
|
+
format: "%Y년 %-m월 %-d일"
|
42
|
+
abbr_day_names: ["일", "월", "화", "수", "목", "금", "토"]
|
43
|
+
abbr_month_names: ["1월", "2월", "3월", "4월", "5월", "6월",
|
44
|
+
"7월", "8월", "9월", "10월", "11월", "12월"]
|
45
|
+
day_names: ["일요일", "월요일", "화요일", "수요일", "목요일", "금요일", "토요일", "일요일"]
|
46
|
+
month_names: ["1월", "2월", "3월", "4월", "5월", "6월",
|
47
|
+
"7월", "8월", "9월", "10월", "11월", "12월"]
|
48
|
+
morelink: "계속 읽기"
|
49
|
+
page-older: "이전"
|
50
|
+
page-newer: "다음"
|
51
|
+
archive: "블로그 아카이브"
|
52
|
+
archive-category: "'%1' 카테고리 아카이브"
|
53
|
+
archive-tag: "'%1' 태그 아카이브"
|
54
|
+
comments: "댓글"
|
55
|
+
fr:
|
56
|
+
date:
|
57
|
+
format: "%-d %B %Y"
|
58
|
+
abbr_day_names: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"]
|
59
|
+
abbr_month_names: ["Jan", "Fev", "Mar", "Avr", "Mai", "Jui",
|
60
|
+
"Jui", "Aou", "Sep", "Oct", "Nov", "Dec"]
|
61
|
+
day_names: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"]
|
62
|
+
month_names: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin",
|
63
|
+
"Juillet", "Aout", "Septembre", "Octobre", "Novembre", "Décembre"]
|
64
|
+
morelink: "Lire plus"
|
65
|
+
page-older: "Plus ancien"
|
66
|
+
page-newer: "Récent"
|
67
|
+
archive: "Archives"
|
68
|
+
archive-category: "Archives de la catégorie '%1'"
|
69
|
+
archive-tag: "Archives du tag '%1'"
|
70
|
+
comments: "Commentaires"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
{% if include.categories != empty %} •
|
2
|
+
{% for category in include.categories %}
|
3
|
+
{% assign no_comma = forloop.last %}
|
4
|
+
{% for archive in site.archives %}
|
5
|
+
{% if archive.type == "category" and archive.title == category %}
|
6
|
+
<a href="{{ archive.url | relative_url }}">{{ archive.title | escape }}</a>{% unless no_comma %},{% endunless %}
|
7
|
+
{% endif %}
|
8
|
+
{% endfor %}
|
9
|
+
{% endfor %}
|
10
|
+
{% endif %}
|
11
|
+
|
12
|
+
{% if include.tags != empty %} •
|
13
|
+
{% for tag in include.tags %}
|
14
|
+
{% assign no_comma = forloop.last %}
|
15
|
+
{% for archive in site.archives %}
|
16
|
+
{% if archive.type == "tag" and archive.title == tag %}
|
17
|
+
<a href="{{ archive.url | relative_url }}">{{ archive.title | escape }}</a>{% unless no_comma %},{% endunless %}
|
18
|
+
{% endif %}
|
19
|
+
{% endfor %}
|
20
|
+
{% endfor %}
|
21
|
+
{% endif %}
|
data/_includes/date.html
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
{%- if include.lang and include.lang != empty -%}
|
2
|
+
{%- assign plang = include.lang -%}
|
3
|
+
{%- else -%}
|
4
|
+
{%- assign plang = page.lang | default: site.lang | default: "en" -%}
|
5
|
+
{%- endif -%}
|
6
|
+
{%- assign splang = plang | truncate: 2, "" -%}
|
7
|
+
{%- if plang != "en" -%}
|
8
|
+
{%- assign dateformat = site.data.i18n.[plang].date.format | default: site.data.i18n.[splang].date.format | default: "%b %-d, %Y" -%}
|
9
|
+
{%- comment -%} The dateformat is determined based on the language. Now replace required variables (for now we ignore time based variables (%p, %P)) {%- endcomment -%}
|
10
|
+
{%- assign num_month = include.date | date: "%-m" | minus: 1 -%}
|
11
|
+
{%- assign num_day = include.date | date: "%w" | plus: 0 -%}
|
12
|
+
{%- assign i18n_dateformat = dateformat -%}
|
13
|
+
{%- assign abbr_day_name = site.data.i18n.[plang].date.abbr_day_names[num_day] | default: site.data.i18n.[splang].date.abbr_day_names[num_day] -%}
|
14
|
+
{%- if abbr_day_name -%}
|
15
|
+
{%- assign i18n_dateformat = i18n_dateformat | replace: "%a", abbr_day_name -%}
|
16
|
+
{%- endif -%}
|
17
|
+
{%- assign day_name = site.data.i18n.[plang].date.day_names[num_day] | default: site.data.i18n.[splang].date.day_names[num_day] -%}
|
18
|
+
{%- if day_name -%}
|
19
|
+
{%- assign i18n_dateformat = i18n_dateformat | replace: "%A", day_name -%}
|
20
|
+
{%- endif -%}
|
21
|
+
{%- assign abbr_month_name = site.data.i18n.[plang].date.abbr_month_names[num_month] | default: site.data.i18n.[splang].date.abbr_month_names[num_month] -%}
|
22
|
+
{%- if abbr_month_name -%}
|
23
|
+
{%- assign i18n_dateformat = i18n_dateformat | replace: "%b", abbr_month_name -%}
|
24
|
+
{%- endif -%}
|
25
|
+
{%- assign month_name = site.data.i18n.[plang].date.month_names[num_month] | default: site.data.i18n.[splang].date.month_names[num_month] -%}
|
26
|
+
{%- if month_name -%}
|
27
|
+
{%- assign i18n_dateformat = i18n_dateformat | replace: "%B", month_name -%}
|
28
|
+
{%- endif -%}
|
29
|
+
{{ include.date | date: i18n_dateformat }}
|
30
|
+
{%- else -%}
|
31
|
+
{{ include.date | date: "%b %-d, %Y" }}
|
32
|
+
{%- endif -%}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
{% assign feed_path = "/feed.xml" %}
|
2
|
+
{% if site.feed and site.feed.path %}
|
3
|
+
{% assign feed_path = site.feed.path %}
|
4
|
+
{% endif %}
|
5
|
+
© {{ site.author }} - Powered by <a href="https://jekyllrb.com">Jekyll</a> & <a href="https://github.com/yous/whiteglass">whiteglass</a> - Subscribe via <a href="{{ feed_path | absolute_url }}">RSS</a>
|