sparrow-jekyll-theme 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +20 -20
  3. data/README.md +170 -178
  4. data/_includes/analytics.html +13 -13
  5. data/_includes/breadcrumbs.html +31 -31
  6. data/_includes/comments.html +26 -26
  7. data/_includes/figure +12 -12
  8. data/_includes/paginator.html +8 -69
  9. data/_includes/post-entry.html +15 -15
  10. data/_includes/seo.html +77 -77
  11. data/_includes/social-share.html +42 -42
  12. data/_includes/topnav.html +46 -46
  13. data/_layouts/default.html +46 -46
  14. data/_layouts/home.html +11 -11
  15. data/_layouts/page.html +16 -16
  16. data/_layouts/post.html +38 -38
  17. data/_sass/_base.scss +359 -359
  18. data/_sass/_buttons.scss +61 -61
  19. data/_sass/_footer.scss +53 -53
  20. data/_sass/_navigation.scss +216 -216
  21. data/_sass/_page.scss +60 -60
  22. data/_sass/_post.scss +85 -85
  23. data/_sass/_reset.scss +186 -186
  24. data/_sass/_rrssb.scss +276 -276
  25. data/_sass/_slimmenu.scss +177 -177
  26. data/_sass/_syntax.scss +125 -125
  27. data/_sass/_utilities.scss +67 -67
  28. data/_sass/_variables.scss +73 -73
  29. data/_sass/vendor/breakpoint/_breakpoint.scss +114 -114
  30. data/_sass/vendor/breakpoint/_context.scss +94 -94
  31. data/_sass/vendor/breakpoint/_helpers.scss +151 -151
  32. data/_sass/vendor/breakpoint/_legacy-settings.scss +49 -49
  33. data/_sass/vendor/breakpoint/_no-query.scss +15 -15
  34. data/_sass/vendor/breakpoint/_parsers.scss +215 -215
  35. data/_sass/vendor/breakpoint/_respond-to.scss +82 -82
  36. data/_sass/vendor/breakpoint/_settings.scss +70 -70
  37. data/_sass/vendor/breakpoint/parsers/_double.scss +33 -33
  38. data/_sass/vendor/breakpoint/parsers/_query.scss +82 -82
  39. data/_sass/vendor/breakpoint/parsers/_resolution.scss +31 -31
  40. data/_sass/vendor/breakpoint/parsers/_single.scss +26 -26
  41. data/_sass/vendor/breakpoint/parsers/_triple.scss +36 -36
  42. data/_sass/vendor/breakpoint/parsers/double/_default-pair.scss +21 -21
  43. data/_sass/vendor/breakpoint/parsers/double/_default.scss +22 -22
  44. data/_sass/vendor/breakpoint/parsers/double/_double-string.scss +21 -21
  45. data/_sass/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -60
  46. data/_sass/vendor/breakpoint/parsers/single/_default.scss +13 -13
  47. data/_sass/vendor/breakpoint/parsers/triple/_default.scss +18 -18
  48. data/_sass/vendor/font-awesome/_animated.scss +34 -34
  49. data/_sass/vendor/font-awesome/_bordered-pulled.scss +25 -25
  50. data/_sass/vendor/font-awesome/_core.scss +12 -12
  51. data/_sass/vendor/font-awesome/_fixed-width.scss +6 -6
  52. data/_sass/vendor/font-awesome/_font-awesome.scss +18 -18
  53. data/_sass/vendor/font-awesome/_icons.scss +789 -789
  54. data/_sass/vendor/font-awesome/_larger.scss +13 -13
  55. data/_sass/vendor/font-awesome/_list.scss +19 -19
  56. data/_sass/vendor/font-awesome/_mixins.scss +60 -60
  57. data/_sass/vendor/font-awesome/_path.scss +15 -15
  58. data/_sass/vendor/font-awesome/_rotated-flipped.scss +20 -20
  59. data/_sass/vendor/font-awesome/_screen-reader.scss +5 -5
  60. data/_sass/vendor/font-awesome/_stacked.scss +20 -20
  61. data/_sass/vendor/font-awesome/_variables.scss +800 -800
  62. data/_sass/vendor/susy/_su.scss +4 -4
  63. data/_sass/vendor/susy/_susy.scss +4 -4
  64. data/_sass/vendor/susy/_susyone.scss +4 -4
  65. data/_sass/vendor/susy/susy/_su.scss +7 -7
  66. data/_sass/vendor/susy/susy/language/_susy.scss +24 -24
  67. data/_sass/vendor/susy/susy/language/_susyone.scss +13 -13
  68. data/_sass/vendor/susy/susy/language/susy/_background.scss +385 -385
  69. data/_sass/vendor/susy/susy/language/susy/_bleed.scss +200 -200
  70. data/_sass/vendor/susy/susy/language/susy/_box-sizing.scss +47 -47
  71. data/_sass/vendor/susy/susy/language/susy/_breakpoint-plugin.scss +185 -185
  72. data/_sass/vendor/susy/susy/language/susy/_container.scss +81 -81
  73. data/_sass/vendor/susy/susy/language/susy/_context.scss +36 -36
  74. data/_sass/vendor/susy/susy/language/susy/_gallery.scss +94 -94
  75. data/_sass/vendor/susy/susy/language/susy/_grids.scss +64 -64
  76. data/_sass/vendor/susy/susy/language/susy/_gutters.scss +154 -154
  77. data/_sass/vendor/susy/susy/language/susy/_isolate.scss +77 -77
  78. data/_sass/vendor/susy/susy/language/susy/_margins.scss +94 -94
  79. data/_sass/vendor/susy/susy/language/susy/_padding.scss +74 -74
  80. data/_sass/vendor/susy/susy/language/susy/_rows.scss +138 -138
  81. data/_sass/vendor/susy/susy/language/susy/_settings.scss +216 -216
  82. data/_sass/vendor/susy/susy/language/susy/_span.scss +163 -163
  83. data/_sass/vendor/susy/susy/language/susy/_validation.scss +16 -16
  84. data/_sass/vendor/susy/susy/language/susyone/_background.scss +18 -18
  85. data/_sass/vendor/susy/susy/language/susyone/_functions.scss +377 -377
  86. data/_sass/vendor/susy/susy/language/susyone/_grid.scss +312 -312
  87. data/_sass/vendor/susy/susy/language/susyone/_isolation.scss +51 -51
  88. data/_sass/vendor/susy/susy/language/susyone/_margin.scss +93 -93
  89. data/_sass/vendor/susy/susy/language/susyone/_media.scss +105 -105
  90. data/_sass/vendor/susy/susy/language/susyone/_padding.scss +92 -92
  91. data/_sass/vendor/susy/susy/language/susyone/_settings.scss +60 -60
  92. data/_sass/vendor/susy/susy/output/_float.scss +9 -9
  93. data/_sass/vendor/susy/susy/output/_shared.scss +15 -15
  94. data/_sass/vendor/susy/susy/output/_support.scss +9 -9
  95. data/_sass/vendor/susy/susy/output/float/_container.scss +16 -16
  96. data/_sass/vendor/susy/susy/output/float/_end.scss +40 -40
  97. data/_sass/vendor/susy/susy/output/float/_isolate.scss +22 -22
  98. data/_sass/vendor/susy/susy/output/float/_span.scss +35 -35
  99. data/_sass/vendor/susy/susy/output/shared/_background.scss +26 -26
  100. data/_sass/vendor/susy/susy/output/shared/_container.scss +21 -21
  101. data/_sass/vendor/susy/susy/output/shared/_direction.scss +42 -42
  102. data/_sass/vendor/susy/susy/output/shared/_inspect.scss +25 -25
  103. data/_sass/vendor/susy/susy/output/shared/_margins.scss +23 -23
  104. data/_sass/vendor/susy/susy/output/shared/_output.scss +14 -14
  105. data/_sass/vendor/susy/susy/output/shared/_padding.scss +23 -23
  106. data/_sass/vendor/susy/susy/output/support/_background.scss +58 -58
  107. data/_sass/vendor/susy/susy/output/support/_box-sizing.scss +19 -19
  108. data/_sass/vendor/susy/susy/output/support/_clearfix.scss +18 -18
  109. data/_sass/vendor/susy/susy/output/support/_prefix.scss +19 -19
  110. data/_sass/vendor/susy/susy/output/support/_rem.scss +22 -22
  111. data/_sass/vendor/susy/susy/output/support/_support.scss +85 -85
  112. data/_sass/vendor/susy/susy/su/_grid.scss +103 -103
  113. data/_sass/vendor/susy/susy/su/_settings.scss +73 -73
  114. data/_sass/vendor/susy/susy/su/_utilities.scss +111 -111
  115. data/_sass/vendor/susy/susy/su/_validation.scss +57 -57
  116. data/assets/css/main.scss +43 -43
  117. data/assets/fonts/fontawesome-webfont.svg +2671 -2671
  118. data/assets/js/main.js +35 -35
  119. data/assets/js/plugins/jquery-1.12.4.min.js +4 -4
  120. data/assets/js/slimmenu.js +154 -154
  121. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4095ddcf4e38f5fec08d8b9d9edf44b7cd135a77
4
- data.tar.gz: b215e8c038a30942a5b9ce4c0733b02eb1d476eb
3
+ metadata.gz: a142040fe6cc8a6723b39197f3be2de73d1e795a
4
+ data.tar.gz: b24a64f2bc6bc1631ce19f16bd29620c6039805b
5
5
  SHA512:
6
- metadata.gz: 2e953f08eaea325094cda06b91461dc32830f8b66a2cf4c71bd1d7e598937648794bbc889ed1b24d5447937872eb3d9dead036f05e590e46301fc92e66b61661
7
- data.tar.gz: fcfdf82955532d1a8a806e53cd45608a5ceab415a0f4096510f657c6d093e8e1b5d45245b3065cd2fd5c8ca295c7f564178b832e24b920087a56b5a42ca16717
6
+ metadata.gz: 4321c9862aa7fe94820b37549422efb05282b6b5b09c917db991df07b48a0215c88806a573cf31c8cb13549d559e5ec01b2520113237bd1ad0ac8d2852239085
7
+ data.tar.gz: 3664dc14af02c6158b0bed3d2f7fb64180fc288c5923f1d8467b5132abd1d35c766a765b377dcaa3b464fd0ba49805b84c1571686b96f00ac14db419bcddd216
@@ -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
- [![Gem Version](https://badge.fury.io/rb/sparrow-jekyll-theme.svg)](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
- ![](screenshot.png)
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/jekyll/jekyll-paginate)
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, pagination is set to a the blog page. Unfortunately Jekyll does not yet support pagination on multiple pages.
119
-
120
- If you want to paginate on a different page, simply change the `paginate_path` value in the config file and create the relevant page.
121
-
122
- ```yaml
123
- paginate: 5 # amount of posts to show
124
- paginate_path: "/blog/page:num/"
125
- timezone: # http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
126
- ```
127
-
128
- ### Navigation
129
-
130
- You can change the navigation links in `_data/navigation.yml`.
131
-
132
- ### Front matter defaults
133
-
134
- 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:
135
-
136
- ```yaml
137
- # Front matter defaults
138
- defaults:
139
- # _pages
140
- - scope:
141
- path: ""
142
- type: pages
143
- values:
144
- layout: page
145
- comments: false
146
- # _posts
147
- - scope:
148
- path: ""
149
- type: posts
150
- values:
151
- layout: post
152
- comments: true
153
- share: true
154
- # _poetry
155
- - scope:
156
- path: ""
157
- type: poetry
158
- values:
159
- layout: post
160
- share: false
161
- ```
162
-
163
- ### Other
164
-
165
- To enhance SEO, you can add your twitter username to `_config.yml`.
166
-
167
- 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.
168
-
169
- For the various config options see the [sample config file for the demo site](https://github.com/lingxz/sparrow/blob/master/_config.yml)
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
+ [![Gem Version](https://badge.fury.io/rb/sparrow-jekyll-theme.svg)](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
+ ![](screenshot.png)
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/)
@@ -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 %}
@@ -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>