sparrow-jekyll-theme 0.1.1 → 0.1.2
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 +4 -4
- data/LICENSE.txt +20 -20
- data/README.md +170 -178
- data/_includes/analytics.html +13 -13
- data/_includes/breadcrumbs.html +31 -31
- data/_includes/comments.html +26 -26
- data/_includes/figure +12 -12
- data/_includes/paginator.html +8 -69
- data/_includes/post-entry.html +15 -15
- data/_includes/seo.html +77 -77
- data/_includes/social-share.html +42 -42
- data/_includes/topnav.html +46 -46
- data/_layouts/default.html +46 -46
- data/_layouts/home.html +11 -11
- data/_layouts/page.html +16 -16
- data/_layouts/post.html +38 -38
- data/_sass/_base.scss +359 -359
- data/_sass/_buttons.scss +61 -61
- data/_sass/_footer.scss +53 -53
- data/_sass/_navigation.scss +216 -216
- data/_sass/_page.scss +60 -60
- data/_sass/_post.scss +85 -85
- data/_sass/_reset.scss +186 -186
- data/_sass/_rrssb.scss +276 -276
- data/_sass/_slimmenu.scss +177 -177
- data/_sass/_syntax.scss +125 -125
- data/_sass/_utilities.scss +67 -67
- data/_sass/_variables.scss +73 -73
- data/_sass/vendor/breakpoint/_breakpoint.scss +114 -114
- data/_sass/vendor/breakpoint/_context.scss +94 -94
- data/_sass/vendor/breakpoint/_helpers.scss +151 -151
- data/_sass/vendor/breakpoint/_legacy-settings.scss +49 -49
- data/_sass/vendor/breakpoint/_no-query.scss +15 -15
- data/_sass/vendor/breakpoint/_parsers.scss +215 -215
- data/_sass/vendor/breakpoint/_respond-to.scss +82 -82
- data/_sass/vendor/breakpoint/_settings.scss +70 -70
- data/_sass/vendor/breakpoint/parsers/_double.scss +33 -33
- data/_sass/vendor/breakpoint/parsers/_query.scss +82 -82
- data/_sass/vendor/breakpoint/parsers/_resolution.scss +31 -31
- data/_sass/vendor/breakpoint/parsers/_single.scss +26 -26
- data/_sass/vendor/breakpoint/parsers/_triple.scss +36 -36
- data/_sass/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
- data/_sass/vendor/breakpoint/parsers/double/_default.scss +22 -22
- data/_sass/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
- data/_sass/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
- data/_sass/vendor/breakpoint/parsers/single/_default.scss +13 -13
- data/_sass/vendor/breakpoint/parsers/triple/_default.scss +18 -18
- data/_sass/vendor/font-awesome/_animated.scss +34 -34
- data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -25
- data/_sass/vendor/font-awesome/_core.scss +12 -12
- data/_sass/vendor/font-awesome/_fixed-width.scss +6 -6
- data/_sass/vendor/font-awesome/_font-awesome.scss +18 -18
- data/_sass/vendor/font-awesome/_icons.scss +789 -789
- data/_sass/vendor/font-awesome/_larger.scss +13 -13
- data/_sass/vendor/font-awesome/_list.scss +19 -19
- data/_sass/vendor/font-awesome/_mixins.scss +60 -60
- data/_sass/vendor/font-awesome/_path.scss +15 -15
- data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -20
- data/_sass/vendor/font-awesome/_screen-reader.scss +5 -5
- data/_sass/vendor/font-awesome/_stacked.scss +20 -20
- data/_sass/vendor/font-awesome/_variables.scss +800 -800
- data/_sass/vendor/susy/_su.scss +4 -4
- data/_sass/vendor/susy/_susy.scss +4 -4
- data/_sass/vendor/susy/_susyone.scss +4 -4
- data/_sass/vendor/susy/susy/_su.scss +7 -7
- data/_sass/vendor/susy/susy/language/_susy.scss +24 -24
- data/_sass/vendor/susy/susy/language/_susyone.scss +13 -13
- data/_sass/vendor/susy/susy/language/susy/_background.scss +385 -385
- data/_sass/vendor/susy/susy/language/susy/_bleed.scss +200 -200
- data/_sass/vendor/susy/susy/language/susy/_box-sizing.scss +47 -47
- data/_sass/vendor/susy/susy/language/susy/_breakpoint-plugin.scss +185 -185
- data/_sass/vendor/susy/susy/language/susy/_container.scss +81 -81
- data/_sass/vendor/susy/susy/language/susy/_context.scss +36 -36
- data/_sass/vendor/susy/susy/language/susy/_gallery.scss +94 -94
- data/_sass/vendor/susy/susy/language/susy/_grids.scss +64 -64
- data/_sass/vendor/susy/susy/language/susy/_gutters.scss +154 -154
- data/_sass/vendor/susy/susy/language/susy/_isolate.scss +77 -77
- data/_sass/vendor/susy/susy/language/susy/_margins.scss +94 -94
- data/_sass/vendor/susy/susy/language/susy/_padding.scss +74 -74
- data/_sass/vendor/susy/susy/language/susy/_rows.scss +138 -138
- data/_sass/vendor/susy/susy/language/susy/_settings.scss +216 -216
- data/_sass/vendor/susy/susy/language/susy/_span.scss +163 -163
- data/_sass/vendor/susy/susy/language/susy/_validation.scss +16 -16
- data/_sass/vendor/susy/susy/language/susyone/_background.scss +18 -18
- data/_sass/vendor/susy/susy/language/susyone/_functions.scss +377 -377
- data/_sass/vendor/susy/susy/language/susyone/_grid.scss +312 -312
- data/_sass/vendor/susy/susy/language/susyone/_isolation.scss +51 -51
- data/_sass/vendor/susy/susy/language/susyone/_margin.scss +93 -93
- data/_sass/vendor/susy/susy/language/susyone/_media.scss +105 -105
- data/_sass/vendor/susy/susy/language/susyone/_padding.scss +92 -92
- data/_sass/vendor/susy/susy/language/susyone/_settings.scss +60 -60
- data/_sass/vendor/susy/susy/output/_float.scss +9 -9
- data/_sass/vendor/susy/susy/output/_shared.scss +15 -15
- data/_sass/vendor/susy/susy/output/_support.scss +9 -9
- data/_sass/vendor/susy/susy/output/float/_container.scss +16 -16
- data/_sass/vendor/susy/susy/output/float/_end.scss +40 -40
- data/_sass/vendor/susy/susy/output/float/_isolate.scss +22 -22
- data/_sass/vendor/susy/susy/output/float/_span.scss +35 -35
- data/_sass/vendor/susy/susy/output/shared/_background.scss +26 -26
- data/_sass/vendor/susy/susy/output/shared/_container.scss +21 -21
- data/_sass/vendor/susy/susy/output/shared/_direction.scss +42 -42
- data/_sass/vendor/susy/susy/output/shared/_inspect.scss +25 -25
- data/_sass/vendor/susy/susy/output/shared/_margins.scss +23 -23
- data/_sass/vendor/susy/susy/output/shared/_output.scss +14 -14
- data/_sass/vendor/susy/susy/output/shared/_padding.scss +23 -23
- data/_sass/vendor/susy/susy/output/support/_background.scss +58 -58
- data/_sass/vendor/susy/susy/output/support/_box-sizing.scss +19 -19
- data/_sass/vendor/susy/susy/output/support/_clearfix.scss +18 -18
- data/_sass/vendor/susy/susy/output/support/_prefix.scss +19 -19
- data/_sass/vendor/susy/susy/output/support/_rem.scss +22 -22
- data/_sass/vendor/susy/susy/output/support/_support.scss +85 -85
- data/_sass/vendor/susy/susy/su/_grid.scss +103 -103
- data/_sass/vendor/susy/susy/su/_settings.scss +73 -73
- data/_sass/vendor/susy/susy/su/_utilities.scss +111 -111
- data/_sass/vendor/susy/susy/su/_validation.scss +57 -57
- data/assets/css/main.scss +43 -43
- data/assets/fonts/fontawesome-webfont.svg +2671 -2671
- data/assets/js/main.js +35 -35
- data/assets/js/plugins/jquery-1.12.4.min.js +4 -4
- data/assets/js/slimmenu.js +154 -154
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a142040fe6cc8a6723b39197f3be2de73d1e795a
|
4
|
+
data.tar.gz: b24a64f2bc6bc1631ce19f16bd29620c6039805b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4321c9862aa7fe94820b37549422efb05282b6b5b09c917db991df07b48a0215c88806a573cf31c8cb13549d559e5ec01b2520113237bd1ad0ac8d2852239085
|
7
|
+
data.tar.gz: 3664dc14af02c6158b0bed3d2f7fb64180fc288c5923f1d8467b5132abd1d35c766a765b377dcaa3b464fd0ba49805b84c1571686b96f00ac14db419bcddd216
|
data/LICENSE.txt
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
The MIT License (MIT)
|
2
|
-
|
3
|
-
Copyright (c) 2017 Lingyi Hu
|
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 all
|
13
|
-
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 THE
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Lingyi Hu
|
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 all
|
13
|
+
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 THE
|
21
21
|
SOFTWARE.
|
data/README.md
CHANGED
@@ -1,178 +1,170 @@
|
|
1
|
-
# Sparrow
|
2
|
-
|
3
|
-
[](https://badge.fury.io/rb/sparrow-jekyll-theme)
|
4
|
-
|
5
|
-
A clean minimal Jekyll theme for writers.
|
6
|
-
|
7
|
-
[Live Demo](http://theconfused.me/sparrow)
|
8
|
-
|
9
|
-
- [Features](#features)
|
10
|
-
- [Why the name?](#why-the-name)
|
11
|
-
- [Install](#install)
|
12
|
-
- [General configuration](#general-configuration)
|
13
|
-
- [Disqus](#disqus)
|
14
|
-
- [Google analytics](#google-analytics)
|
15
|
-
- [Collections](#collections)
|
16
|
-
- [Pagination](#pagination)
|
17
|
-
- [Navigation](#navigation)
|
18
|
-
- [Front matter defaults](#front-matter-defaults)
|
19
|
-
- [Other](#other)
|
20
|
-
- [Credits](#credits)
|
21
|
-
|
22
|
-
## Screenshot
|
23
|
-
|
24
|
-

|
25
|
-
|
26
|
-
## Features
|
27
|
-
|
28
|
-
- Fully compatible with Github Pages
|
29
|
-
- Configurable and responsive multi layer menu, adapted from [slimmenu](https://github.com/adnantopal/slimmenu)
|
30
|
-
- Disqus integration
|
31
|
-
- [Font Awesome icons](http://fontawesome.io/) included
|
32
|
-
- Google analytics
|
33
|
-
- Social sharing using [rrssb](https://www.rrssb.ml/)
|
34
|
-
- 404 page included
|
35
|
-
- Typographic optimization for Chinese fonts
|
36
|
-
- Atom feed generated with [jekyll-feed](https://github.com/jekyll/jekyll-feed)
|
37
|
-
- Pagination enabled for blog using [jekyll-paginate](https://github.com/
|
38
|
-
- Basic SEO with Facebook Open Graph tags and Twitter cards
|
39
|
-
|
40
|
-
## Why the name?
|
41
|
-
|
42
|
-
In Chinese there's a saying that goes 麻雀虽小,五脏俱全。It roughly translates to: small though a sparrow is, it possesses all internal organs. Small but complete is what this theme aspires to be. Minimal but includes all the essential aspects to building a blog.
|
43
|
-
|
44
|
-
## Install
|
45
|
-
|
46
|
-
Just fork this repo and replace the posts with your own. Also rename the sample poetry collection to replace it with your own collection, or just delete it if you don't need to use collections. The example is poetry, but you can easily revamp this into essays, short stories, portfolio, or whatever your creative work is.
|
47
|
-
|
48
|
-
OR you can also install this theme as a theme gem. To do that, add to your Gemfile:
|
49
|
-
|
50
|
-
```ruby
|
51
|
-
gem "sparrow-jekyll-theme"
|
52
|
-
```
|
53
|
-
|
54
|
-
And add this line site's `_config.yml`:
|
55
|
-
|
56
|
-
```yaml
|
57
|
-
theme: sparrow-jekyll-theme
|
58
|
-
```
|
59
|
-
|
60
|
-
And then do `bundle install`.
|
61
|
-
|
62
|
-
To run your site locally, do `bundle exec jekyll serve`.
|
63
|
-
|
64
|
-
For customization, see below.
|
65
|
-
|
66
|
-
### General configuration
|
67
|
-
|
68
|
-
Customize these values in the `_config.yml` file:
|
69
|
-
|
70
|
-
```yaml
|
71
|
-
title : "Sparrow"
|
72
|
-
title_separator : "-"
|
73
|
-
description : "A clean and minimal theme for writers."
|
74
|
-
favicon : "/assets/images/bird.png"
|
75
|
-
avatar : "/assets/images/bird.png"
|
76
|
-
url : "https://theconfused.me" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
|
77
|
-
baseurl : "/sparrow"
|
78
|
-
|
79
|
-
# Site Author
|
80
|
-
author:
|
81
|
-
name : "Lingyi" # appears in the footer and atom feed
|
82
|
-
```
|
83
|
-
|
84
|
-
|
85
|
-
### Disqus
|
86
|
-
|
87
|
-
To activate Disqus, fill in your disqus shortname:
|
88
|
-
|
89
|
-
```yaml
|
90
|
-
comments : true # set it to false to disable comments
|
91
|
-
disqus:
|
92
|
-
shortname : your_shortname
|
93
|
-
```
|
94
|
-
|
95
|
-
### Google analytics
|
96
|
-
|
97
|
-
Enable google analytics by filling in your tracking ID:
|
98
|
-
|
99
|
-
```yaml
|
100
|
-
analytics:
|
101
|
-
google:
|
102
|
-
tracking_id : # add your google tracking id here
|
103
|
-
```
|
104
|
-
|
105
|
-
### Collections
|
106
|
-
|
107
|
-
If you are using collections, be sure to replace this with your collection name:
|
108
|
-
|
109
|
-
```yaml
|
110
|
-
collections:
|
111
|
-
poetry:
|
112
|
-
output: true
|
113
|
-
permalink: /:collection/:title/
|
114
|
-
```
|
115
|
-
|
116
|
-
### Pagination
|
117
|
-
|
118
|
-
Currently
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
#
|
147
|
-
- scope:
|
148
|
-
path: ""
|
149
|
-
type:
|
150
|
-
values:
|
151
|
-
layout: post
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
There are also helper classes for ease of inserting image and their captions, adapted from the [Minimal Mistakes theme by Michael Rose](https://github.com/mmistakes/minimal-mistakes). You can find a [sample post with images](https://theconfused.me/sparrow/blog/post-with-image/) on the [demo site](https://theconfused.me/sparrow).
|
172
|
-
|
173
|
-
The color schemes and fonts can also be customized through scss, by editing the relevant variable in `_variables.scss`.
|
174
|
-
|
175
|
-
## Credits
|
176
|
-
|
177
|
-
- Bird icon made by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com) and is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).
|
178
|
-
- Photos from [Unsplash](https://unsplash.com/)
|
1
|
+
# Sparrow
|
2
|
+
|
3
|
+
[](https://badge.fury.io/rb/sparrow-jekyll-theme)
|
4
|
+
|
5
|
+
A clean minimal Jekyll theme for writers.
|
6
|
+
|
7
|
+
[Live Demo](http://theconfused.me/sparrow)
|
8
|
+
|
9
|
+
- [Features](#features)
|
10
|
+
- [Why the name?](#why-the-name)
|
11
|
+
- [Install](#install)
|
12
|
+
- [General configuration](#general-configuration)
|
13
|
+
- [Disqus](#disqus)
|
14
|
+
- [Google analytics](#google-analytics)
|
15
|
+
- [Collections](#collections)
|
16
|
+
- [Pagination](#pagination)
|
17
|
+
- [Navigation](#navigation)
|
18
|
+
- [Front matter defaults](#front-matter-defaults)
|
19
|
+
- [Other](#other)
|
20
|
+
- [Credits](#credits)
|
21
|
+
|
22
|
+
## Screenshot
|
23
|
+
|
24
|
+

|
25
|
+
|
26
|
+
## Features
|
27
|
+
|
28
|
+
- Fully compatible with Github Pages
|
29
|
+
- Configurable and responsive multi layer menu, adapted from [slimmenu](https://github.com/adnantopal/slimmenu)
|
30
|
+
- Disqus integration
|
31
|
+
- [Font Awesome icons](http://fontawesome.io/) included
|
32
|
+
- Google analytics
|
33
|
+
- Social sharing using [rrssb](https://www.rrssb.ml/)
|
34
|
+
- 404 page included
|
35
|
+
- Typographic optimization for Chinese fonts
|
36
|
+
- Atom feed generated with [jekyll-feed](https://github.com/jekyll/jekyll-feed)
|
37
|
+
- Pagination enabled for blog using [jekyll-paginate-v2](https://github.com/sverrirs/jekyll-paginate-v2)
|
38
|
+
- Basic SEO with Facebook Open Graph tags and Twitter cards
|
39
|
+
|
40
|
+
## Why the name?
|
41
|
+
|
42
|
+
In Chinese there's a saying that goes 麻雀虽小,五脏俱全。It roughly translates to: small though a sparrow is, it possesses all internal organs. Small but complete is what this theme aspires to be. Minimal but includes all the essential aspects to building a blog.
|
43
|
+
|
44
|
+
## Install
|
45
|
+
|
46
|
+
Just fork this repo and replace the posts with your own. Also rename the sample poetry collection to replace it with your own collection, or just delete it if you don't need to use collections. The example is poetry, but you can easily revamp this into essays, short stories, portfolio, or whatever your creative work is.
|
47
|
+
|
48
|
+
OR you can also install this theme as a theme gem. To do that, add to your Gemfile:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
gem "sparrow-jekyll-theme"
|
52
|
+
```
|
53
|
+
|
54
|
+
And add this line site's `_config.yml`:
|
55
|
+
|
56
|
+
```yaml
|
57
|
+
theme: sparrow-jekyll-theme
|
58
|
+
```
|
59
|
+
|
60
|
+
And then do `bundle install`.
|
61
|
+
|
62
|
+
To run your site locally, do `bundle exec jekyll serve`.
|
63
|
+
|
64
|
+
For customization, see below.
|
65
|
+
|
66
|
+
### General configuration
|
67
|
+
|
68
|
+
Customize these values in the `_config.yml` file:
|
69
|
+
|
70
|
+
```yaml
|
71
|
+
title : "Sparrow"
|
72
|
+
title_separator : "-"
|
73
|
+
description : "A clean and minimal theme for writers."
|
74
|
+
favicon : "/assets/images/bird.png"
|
75
|
+
avatar : "/assets/images/bird.png"
|
76
|
+
url : "https://theconfused.me" # the base hostname & protocol for your site e.g. "https://mmistakes.github.io"
|
77
|
+
baseurl : "/sparrow"
|
78
|
+
|
79
|
+
# Site Author
|
80
|
+
author:
|
81
|
+
name : "Lingyi" # appears in the footer and atom feed
|
82
|
+
```
|
83
|
+
|
84
|
+
|
85
|
+
### Disqus
|
86
|
+
|
87
|
+
To activate Disqus, fill in your disqus shortname:
|
88
|
+
|
89
|
+
```yaml
|
90
|
+
comments : true # set it to false to disable comments
|
91
|
+
disqus:
|
92
|
+
shortname : your_shortname
|
93
|
+
```
|
94
|
+
|
95
|
+
### Google analytics
|
96
|
+
|
97
|
+
Enable google analytics by filling in your tracking ID:
|
98
|
+
|
99
|
+
```yaml
|
100
|
+
analytics:
|
101
|
+
google:
|
102
|
+
tracking_id : # add your google tracking id here
|
103
|
+
```
|
104
|
+
|
105
|
+
### Collections
|
106
|
+
|
107
|
+
If you are using collections, be sure to replace this with your collection name:
|
108
|
+
|
109
|
+
```yaml
|
110
|
+
collections:
|
111
|
+
poetry:
|
112
|
+
output: true
|
113
|
+
permalink: /:collection/:title/
|
114
|
+
```
|
115
|
+
|
116
|
+
### Pagination
|
117
|
+
|
118
|
+
Pagination is done using jekyll-paginate-v2. Currently it is only turned on for the blog page, but it could possibly support pagination on multiple pages. Please read the [jekyll-paginate-v2 documentation](https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#creating-pagination-trails) for configuraiton.
|
119
|
+
|
120
|
+
### Navigation
|
121
|
+
|
122
|
+
You can change the navigation links in `_data/navigation.yml`.
|
123
|
+
|
124
|
+
### Front matter defaults
|
125
|
+
|
126
|
+
At the bottom of the config file, you can also set [front matter defaults](https://jekyllrb.com/docs/configuration/#front-matter-defaults) so that you don't have to repeat the same front matter for every post. This is an example:
|
127
|
+
|
128
|
+
```yaml
|
129
|
+
# Front matter defaults
|
130
|
+
defaults:
|
131
|
+
# _pages
|
132
|
+
- scope:
|
133
|
+
path: ""
|
134
|
+
type: pages
|
135
|
+
values:
|
136
|
+
layout: page
|
137
|
+
comments: false
|
138
|
+
# _posts
|
139
|
+
- scope:
|
140
|
+
path: ""
|
141
|
+
type: posts
|
142
|
+
values:
|
143
|
+
layout: post
|
144
|
+
comments: true
|
145
|
+
share: true
|
146
|
+
# _poetry
|
147
|
+
- scope:
|
148
|
+
path: ""
|
149
|
+
type: poetry
|
150
|
+
values:
|
151
|
+
layout: post
|
152
|
+
share: false
|
153
|
+
```
|
154
|
+
|
155
|
+
### Other
|
156
|
+
|
157
|
+
To enhance SEO, you can add your twitter username to `_config.yml`.
|
158
|
+
|
159
|
+
You can also add a image path for the `og_image` value in the config file, for a default open graph sharing image. This value can be overridden in individual posts.
|
160
|
+
|
161
|
+
For the various config options see the [sample config file for the demo site](https://github.com/lingxz/sparrow/blob/master/_config.yml)
|
162
|
+
|
163
|
+
There are also helper classes for ease of inserting image and their captions, adapted from the [Minimal Mistakes theme by Michael Rose](https://github.com/mmistakes/minimal-mistakes). You can find a [sample post with images](https://theconfused.me/sparrow/blog/post-with-image/) on the [demo site](https://theconfused.me/sparrow).
|
164
|
+
|
165
|
+
The color schemes and fonts can also be customized through scss, by editing the relevant variable in `_variables.scss`.
|
166
|
+
|
167
|
+
## Credits
|
168
|
+
|
169
|
+
- Bird icon made by [Freepik](http://www.freepik.com) from [Flaticon](http://www.flaticon.com) and is licensed by [CC 3.0 BY](http://creativecommons.org/licenses/by/3.0/).
|
170
|
+
- Photos from [Unsplash](https://unsplash.com/)
|
data/_includes/analytics.html
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
{% if site.analytics and page.analytics != false %}
|
2
|
-
|
3
|
-
<script>
|
4
|
-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
5
|
-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
6
|
-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
7
|
-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
8
|
-
|
9
|
-
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
10
|
-
ga('send', 'pageview');
|
11
|
-
</script>
|
12
|
-
|
13
|
-
{% endif %}
|
1
|
+
{% if site.analytics and page.analytics != false %}
|
2
|
+
|
3
|
+
<script>
|
4
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
5
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
6
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
7
|
+
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
|
8
|
+
|
9
|
+
ga('create', '{{ site.analytics.google.tracking_id }}', 'auto');
|
10
|
+
ga('send', 'pageview');
|
11
|
+
</script>
|
12
|
+
|
13
|
+
{% endif %}
|
data/_includes/breadcrumbs.html
CHANGED
@@ -1,32 +1,32 @@
|
|
1
|
-
{% if page.collection != 'posts' %}
|
2
|
-
{% assign path_type = nil %}
|
3
|
-
{% assign crumb_path = '/' %}
|
4
|
-
{% else %}
|
5
|
-
{% assign crumb_path = site.categories.path %}
|
6
|
-
{% endif %}
|
7
|
-
|
8
|
-
<nav class="breadcrumbs">
|
9
|
-
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
10
|
-
{% assign crumbs = page.url | split: '/' %}
|
11
|
-
{% assign i = 1 %}
|
12
|
-
{% for crumb in crumbs offset: 1 %}
|
13
|
-
{% if forloop.first %}
|
14
|
-
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
15
|
-
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">Home</span></a>
|
16
|
-
<meta itemprop="position" content="{{ i }}" />
|
17
|
-
</li>
|
18
|
-
<span class="sep">/</span>
|
19
|
-
{% endif %}
|
20
|
-
{% if forloop.last %}
|
21
|
-
<li class="current">{{ page.title }}</li>
|
22
|
-
{% else %}
|
23
|
-
{% assign i = i | plus: 1 %}
|
24
|
-
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
25
|
-
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | absolute_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
26
|
-
<meta itemprop="position" content="{{ i }}" />
|
27
|
-
</li>
|
28
|
-
<span class="sep">/</span>
|
29
|
-
{% endif %}
|
30
|
-
{% endfor %}
|
31
|
-
</ol>
|
1
|
+
{% if page.collection != 'posts' %}
|
2
|
+
{% assign path_type = nil %}
|
3
|
+
{% assign crumb_path = '/' %}
|
4
|
+
{% else %}
|
5
|
+
{% assign crumb_path = site.categories.path %}
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
<nav class="breadcrumbs">
|
9
|
+
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
10
|
+
{% assign crumbs = page.url | split: '/' %}
|
11
|
+
{% assign i = 1 %}
|
12
|
+
{% for crumb in crumbs offset: 1 %}
|
13
|
+
{% if forloop.first %}
|
14
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
15
|
+
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">Home</span></a>
|
16
|
+
<meta itemprop="position" content="{{ i }}" />
|
17
|
+
</li>
|
18
|
+
<span class="sep">/</span>
|
19
|
+
{% endif %}
|
20
|
+
{% if forloop.last %}
|
21
|
+
<li class="current">{{ page.title }}</li>
|
22
|
+
{% else %}
|
23
|
+
{% assign i = i | plus: 1 %}
|
24
|
+
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
25
|
+
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | absolute_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
26
|
+
<meta itemprop="position" content="{{ i }}" />
|
27
|
+
</li>
|
28
|
+
<span class="sep">/</span>
|
29
|
+
{% endif %}
|
30
|
+
{% endfor %}
|
31
|
+
</ol>
|
32
32
|
</nav>
|