jekyll-docs 3.1.6 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (211) hide show
  1. checksums.yaml +4 -4
  2. data/lib/jekyll-docs.rb +7 -13
  3. data/site/community/index.html +305 -0
  4. data/site/conduct/index.html +10 -0
  5. data/site/css/screen.css +1445 -0
  6. data/site/docs/assets/index.html +701 -0
  7. data/site/docs/collections/index.html +973 -0
  8. data/site/docs/conduct/index.html +718 -0
  9. data/site/docs/configuration/index.html +1337 -0
  10. data/site/docs/continuous-integration/index.html +846 -0
  11. data/site/docs/contributing/index.html +815 -0
  12. data/site/docs/datafiles/index.html +742 -0
  13. data/site/docs/deployment-methods/index.html +866 -0
  14. data/site/docs/drafts/index.html +615 -0
  15. data/site/docs/extras/index.html +656 -0
  16. data/site/docs/frontmatter/index.html +776 -0
  17. data/site/docs/github-pages/index.html +778 -0
  18. data/site/docs/history/index.html +3293 -0
  19. data/site/docs/home/index.html +627 -0
  20. data/site/docs/index.html +10 -0
  21. data/site/docs/installation/index.html +682 -0
  22. data/site/docs/migrations/index.html +627 -0
  23. data/site/docs/pages/index.html +698 -0
  24. data/site/docs/pagination/index.html +840 -0
  25. data/site/docs/permalinks/index.html +924 -0
  26. data/site/docs/plugins/index.html +1726 -0
  27. data/site/docs/posts/index.html +811 -0
  28. data/site/docs/quickstart/index.html +599 -0
  29. data/site/docs/resources/index.html +717 -0
  30. data/site/docs/sites/index.html +676 -0
  31. data/site/docs/static-files/index.html +655 -0
  32. data/site/docs/structure/index.html +794 -0
  33. data/site/docs/templates/index.html +1105 -0
  34. data/site/docs/themes/index.html +751 -0
  35. data/site/docs/troubleshooting/index.html +826 -0
  36. data/site/docs/upgrading/0-to-2/index.html +802 -0
  37. data/site/docs/upgrading/2-to-3/index.html +785 -0
  38. data/site/docs/upgrading/index.html +664 -0
  39. data/site/docs/usage/index.html +673 -0
  40. data/site/docs/variables/index.html +1013 -0
  41. data/site/docs/windows/index.html +775 -0
  42. data/site/feed.xml +222 -0
  43. data/site/github.html +10 -0
  44. data/site/help/index.html +246 -0
  45. data/site/img/article-footer.png +0 -0
  46. data/site/img/footer-logo.png +0 -0
  47. data/site/img/logo-2x.png +0 -0
  48. data/site/index.html +200 -16
  49. data/site/issues.html +10 -0
  50. data/site/news/2013/05/05/jekyll-1-0-0-released/index.html +524 -0
  51. data/site/news/2013/05/08/jekyll-1-0-1-released/index.html +524 -0
  52. data/site/news/2013/05/12/jekyll-1-0-2-released/index.html +525 -0
  53. data/site/news/2013/06/07/jekyll-1-0-3-released/index.html +522 -0
  54. data/site/news/2013/07/14/jekyll-1-1-0-released/index.html +524 -0
  55. data/site/news/2013/07/24/jekyll-1-1-1-released/index.html +523 -0
  56. data/site/news/2013/07/25/jekyll-1-0-4-released/index.html +519 -0
  57. data/site/news/2013/07/25/jekyll-1-1-2-released/index.html +519 -0
  58. data/site/news/2013/09/06/jekyll-1-2-0-released/index.html +526 -0
  59. data/site/news/2013/09/14/jekyll-1-2-1-released/index.html +520 -0
  60. data/site/news/2013/10/28/jekyll-1-3-0-rc1-released/index.html +518 -0
  61. data/site/news/2013/11/04/jekyll-1-3-0-released/index.html +553 -0
  62. data/site/news/2013/11/26/jekyll-1-3-1-released/index.html +522 -0
  63. data/site/news/2013/12/07/jekyll-1-4-0-released/index.html +537 -0
  64. data/site/news/2013/12/09/jekyll-1-4-1-released/index.html +519 -0
  65. data/site/news/2013/12/16/jekyll-1-4-2-released/index.html +518 -0
  66. data/site/news/2014/01/13/jekyll-1-4-3-released/index.html +527 -0
  67. data/site/news/2014/03/24/jekyll-1-5-0-released/index.html +518 -0
  68. data/site/news/2014/03/27/jekyll-1-5-1-released/index.html +523 -0
  69. data/site/news/2014/05/06/jekyll-turns-2-0-0/index.html +539 -0
  70. data/site/news/2014/05/08/jekyll-2-0-3-released/index.html +519 -0
  71. data/site/news/2014/06/04/jekyll-stickers-1-dollar-stickermule/index.html +521 -0
  72. data/site/news/2014/06/28/jekyll-turns-21-i-mean-2-1-0/index.html +536 -0
  73. data/site/news/2014/07/01/jekyll-2-1-1-released/index.html +533 -0
  74. data/site/news/2014/07/29/jekyll-2-2-0-released/index.html +522 -0
  75. data/site/news/2014/08/10/jekyll-2-3-0-released/index.html +542 -0
  76. data/site/news/2014/09/09/jekyll-2-4-0-released/index.html +528 -0
  77. data/site/news/2014/11/05/jekylls-midlife-crisis-jekyll-turns-2-5-0/index.html +551 -0
  78. data/site/news/2014/11/09/jekyll-2-5-1-released/index.html +529 -0
  79. data/site/news/2014/11/12/jekyll-2-5-2-released/index.html +519 -0
  80. data/site/news/2014/12/17/alfredxing-welcome-to-jekyll-core/index.html +526 -0
  81. data/site/news/2014/12/22/jekyll-2-5-3-released/index.html +521 -0
  82. data/site/news/2015/01/20/jekyll-meet-and-greet/index.html +522 -0
  83. data/site/news/2015/01/24/jekyll-3-0-0-beta1-released/index.html +542 -0
  84. data/site/news/2015/02/26/introducing-jekyll-talk/index.html +517 -0
  85. data/site/news/2015/10/26/jekyll-3-0-released/index.html +546 -0
  86. data/site/news/2015/11/17/jekyll-3-0-1-released/index.html +530 -0
  87. data/site/news/2016/01/20/jekyll-3-0-2-released/index.html +520 -0
  88. data/site/news/2016/01/24/jekyll-3-1-0-released/index.html +553 -0
  89. data/site/news/2016/01/28/jekyll-3-1-1-released/index.html +537 -0
  90. data/site/news/2016/02/08/jekyll-3-0-3-released/index.html +532 -0
  91. data/site/news/2016/02/19/jekyll-3-1-2-released/index.html +523 -0
  92. data/site/news/2016/03/10/making-it-easier-to-contribute-to-jekyll/index.html +519 -0
  93. data/site/news/2016/04/19/jekyll-3-0-4-released/index.html +525 -0
  94. data/site/news/2016/04/19/jekyll-3-1-3-released/index.html +521 -0
  95. data/site/news/2016/04/26/jekyll-3-0-5-released/index.html +526 -0
  96. data/site/news/2016/05/18/jekyll-3-1-4-released/index.html +530 -0
  97. data/site/news/2016/05/18/jekyll-3-1-5-released/index.html +518 -0
  98. data/site/news/2016/05/19/jekyll-3-1-6-released/index.html +520 -0
  99. data/site/news/2016/06/03/update-on-jekyll-s-google-summer-of-code-projects/index.html +521 -0
  100. data/site/news/2016/07/26/jekyll-3-2-0-released/index.html +630 -0
  101. data/site/news/index.html +2831 -10
  102. data/site/news/releases/index.html +2603 -10
  103. data/site/sitemap.xml +327 -0
  104. metadata +99 -111
  105. data/site/_config.yml +0 -25
  106. data/site/_data/docs.yml +0 -49
  107. data/site/_docs/assets.md +0 -94
  108. data/site/_docs/collections.md +0 -380
  109. data/site/_docs/conduct.md +0 -55
  110. data/site/_docs/configuration.md +0 -747
  111. data/site/_docs/continuous-integration.md +0 -221
  112. data/site/_docs/contributing.md +0 -124
  113. data/site/_docs/datafiles.md +0 -151
  114. data/site/_docs/deployment-methods.md +0 -213
  115. data/site/_docs/drafts.md +0 -20
  116. data/site/_docs/extras.md +0 -22
  117. data/site/_docs/frontmatter.md +0 -191
  118. data/site/_docs/github-pages.md +0 -133
  119. data/site/_docs/history.md +0 -2323
  120. data/site/_docs/index.md +0 -57
  121. data/site/_docs/installation.md +0 -106
  122. data/site/_docs/migrations.md +0 -9
  123. data/site/_docs/pages.md +0 -100
  124. data/site/_docs/pagination.md +0 -224
  125. data/site/_docs/permalinks.md +0 -308
  126. data/site/_docs/plugins.md +0 -903
  127. data/site/_docs/posts.md +0 -237
  128. data/site/_docs/quickstart.md +0 -26
  129. data/site/_docs/resources.md +0 -38
  130. data/site/_docs/sites.md +0 -23
  131. data/site/_docs/static_files.md +0 -52
  132. data/site/_docs/structure.md +0 -211
  133. data/site/_docs/templates.md +0 -451
  134. data/site/_docs/troubleshooting.md +0 -207
  135. data/site/_docs/upgrading.md +0 -10
  136. data/site/_docs/upgrading/0-to-2.md +0 -140
  137. data/site/_docs/upgrading/2-to-3.md +0 -126
  138. data/site/_docs/usage.md +0 -101
  139. data/site/_docs/variables.md +0 -390
  140. data/site/_docs/windows.md +0 -46
  141. data/site/_includes/analytics.html +0 -30
  142. data/site/_includes/anchor_links.html +0 -33
  143. data/site/_includes/docs_contents.html +0 -8
  144. data/site/_includes/docs_contents_mobile.html +0 -10
  145. data/site/_includes/docs_option.html +0 -11
  146. data/site/_includes/docs_ul.html +0 -17
  147. data/site/_includes/footer.html +0 -15
  148. data/site/_includes/header.html +0 -18
  149. data/site/_includes/news_contents.html +0 -33
  150. data/site/_includes/news_contents_mobile.html +0 -11
  151. data/site/_includes/news_item.html +0 -24
  152. data/site/_includes/primary-nav-items.html +0 -17
  153. data/site/_includes/section_nav.html +0 -39
  154. data/site/_includes/top.html +0 -17
  155. data/site/_layouts/default.html +0 -13
  156. data/site/_layouts/docs.html +0 -26
  157. data/site/_layouts/news.html +0 -19
  158. data/site/_layouts/news_item.html +0 -27
  159. data/site/_layouts/page.html +0 -18
  160. data/site/_posts/2013-05-06-jekyll-1-0-0-released.markdown +0 -23
  161. data/site/_posts/2013-05-08-jekyll-1-0-1-released.markdown +0 -27
  162. data/site/_posts/2013-05-12-jekyll-1-0-2-released.markdown +0 -28
  163. data/site/_posts/2013-06-07-jekyll-1-0-3-released.markdown +0 -25
  164. data/site/_posts/2013-07-14-jekyll-1-1-0-released.markdown +0 -27
  165. data/site/_posts/2013-07-24-jekyll-1-1-1-released.markdown +0 -31
  166. data/site/_posts/2013-07-25-jekyll-1-0-4-released.markdown +0 -20
  167. data/site/_posts/2013-07-25-jekyll-1-1-2-released.markdown +0 -20
  168. data/site/_posts/2013-09-06-jekyll-1-2-0-released.markdown +0 -23
  169. data/site/_posts/2013-09-14-jekyll-1-2-1-released.markdown +0 -19
  170. data/site/_posts/2013-10-28-jekyll-1-3-0-rc1-released.markdown +0 -17
  171. data/site/_posts/2013-11-04-jekyll-1-3-0-released.markdown +0 -43
  172. data/site/_posts/2013-11-26-jekyll-1-3-1-released.markdown +0 -21
  173. data/site/_posts/2013-12-07-jekyll-1-4-0-released.markdown +0 -30
  174. data/site/_posts/2013-12-09-jekyll-1-4-1-released.markdown +0 -18
  175. data/site/_posts/2013-12-16-jekyll-1-4-2-released.markdown +0 -18
  176. data/site/_posts/2014-01-13-jekyll-1-4-3-released.markdown +0 -26
  177. data/site/_posts/2014-03-24-jekyll-1-5-0-released.markdown +0 -19
  178. data/site/_posts/2014-03-27-jekyll-1-5-1-released.markdown +0 -26
  179. data/site/_posts/2014-05-06-jekyll-turns-2-0-0.markdown +0 -31
  180. data/site/_posts/2014-05-08-jekyll-2-0-3-released.markdown +0 -18
  181. data/site/_posts/2014-06-04-jekyll-stickers-1-dollar-stickermule.markdown +0 -19
  182. data/site/_posts/2014-06-28-jekyll-turns-21-i-mean-2-1-0.markdown +0 -31
  183. data/site/_posts/2014-07-01-jekyll-2-1-1-released.markdown +0 -30
  184. data/site/_posts/2014-07-29-jekyll-2-2-0-released.markdown +0 -19
  185. data/site/_posts/2014-08-10-jekyll-2-3-0-released.markdown +0 -41
  186. data/site/_posts/2014-09-09-jekyll-2-4-0-released.markdown +0 -25
  187. data/site/_posts/2014-11-06-jekylls-midlife-crisis-jekyll-turns-2-5-0.markdown +0 -47
  188. data/site/_posts/2014-11-08-jekyll-2-5-1-released.markdown +0 -29
  189. data/site/_posts/2014-11-12-jekyll-2-5-2-released.markdown +0 -18
  190. data/site/_posts/2014-12-17-alfredxing-welcome-to-jekyll-core.md +0 -27
  191. data/site/_posts/2014-12-22-jekyll-2-5-3-released.markdown +0 -20
  192. data/site/_posts/2015-01-20-jekyll-meet-and-greet.markdown +0 -20
  193. data/site/_posts/2015-01-24-jekyll-3-0-0-beta1-released.markdown +0 -40
  194. data/site/_posts/2015-02-26-introducing-jekyll-talk.markdown +0 -15
  195. data/site/_posts/2015-10-26-jekyll-3-0-released.markdown +0 -35
  196. data/site/_posts/2015-11-17-jekyll-3-0-1-released.markdown +0 -25
  197. data/site/_posts/2016-01-20-jekyll-3-0-2-released.markdown +0 -19
  198. data/site/_posts/2016-01-24-jekyll-3-1-0-released.markdown +0 -50
  199. data/site/_posts/2016-01-28-jekyll-3-1-1-released.markdown +0 -33
  200. data/site/_posts/2016-02-08-jekyll-3-0-3-released.markdown +0 -32
  201. data/site/_posts/2016-02-19-jekyll-3-1-2-released.markdown +0 -20
  202. data/site/_sass/_font-awesome.scss +0 -25
  203. data/site/_sass/_gridism.scss +0 -124
  204. data/site/_sass/_mixins.scss +0 -38
  205. data/site/_sass/_normalize.scss +0 -1
  206. data/site/_sass/_pygments.scss +0 -78
  207. data/site/_sass/_style.scss +0 -1002
  208. data/site/css/screen.scss +0 -9
  209. data/site/help/index.md +0 -41
  210. data/site/redirects/github.html +0 -4
  211. data/site/redirects/issues.html +0 -4
@@ -0,0 +1,973 @@
1
+ <!DOCTYPE HTML>
2
+ <html lang="en-US">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1">
7
+ <meta name="generator" content="Jekyll v3.2.0">
8
+ <link type="application/atom+xml" rel="alternate" href="https://jekyllrb.com/feed.xml" title="Jekyll • Simple, blog-aware, static sites">
9
+ <link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="https://github.com/jekyll/jekyll/commits/master.atom">
10
+ <link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900">
11
+ <link rel="stylesheet" href="/css/screen.css">
12
+ <link rel="icon" type="image/x-icon" href="/favicon.ico">
13
+ <!-- Begin Jekyll SEO tag v2.0.0 -->
14
+ <title>Collections - Jekyll • Simple, blog-aware, static sites</title>
15
+ <meta property="og:title" content="Collections">
16
+ <meta name="description" content="Transform your plain text into static websites and blogs">
17
+ <meta property="og:description" content="Transform your plain text into static websites and blogs">
18
+ <link rel="canonical" href="https://jekyllrb.com/docs/collections/">
19
+ <meta property="og:url" content="https://jekyllrb.com/docs/collections/">
20
+ <meta property="og:site_name" content="Jekyll • Simple, blog-aware, static sites">
21
+ <meta property="og:type" content="article">
22
+ <meta property="article:published_time" content="2016-07-27T18:44:57-07:00">
23
+ <meta name="twitter:card" content="summary">
24
+ <meta name="twitter:site" content="@jekyllrb">
25
+ <meta name="google-site-verification" content="onQcXpAvtHBrUI5LlroHNE_FP0b2qvFyPq7VZw36iEY">
26
+ <script type="application/ld+json">
27
+ {
28
+ "@context": "http://schema.org",
29
+ "@type": "BlogPosting",
30
+ "headline": "Collections",
31
+ "datePublished": "2016-07-27T18:44:57-07:00",
32
+ "description": "Transform your plain text into static websites and blogs",
33
+ "logo": "https://jekyllrb.comimg/logo-2x.png",
34
+ "url": "https://jekyllrb.com/docs/collections/"
35
+ }
36
+ </script>
37
+ <!-- End Jekyll SEO tag -->
38
+ <!--[if lt IE 9]>
39
+ <script src="/js/html5shiv.min.js"></script>
40
+ <script src="/js/respond.min.js"></script>
41
+ <![endif]-->
42
+ </head>
43
+
44
+
45
+ <body class="wrap">
46
+ <header>
47
+ <nav class="mobile-nav show-on-mobiles">
48
+ <ul>
49
+ <li class="">
50
+ <a href="/">Home</a>
51
+ </li>
52
+ <li class="current">
53
+ <a href="/docs/home/">Docs</a>
54
+ </li>
55
+ <li class="">
56
+ <a href="/news/">News</a>
57
+ </li>
58
+ <li class="">
59
+ <a href="/community/">Community</a>
60
+ </li>
61
+ <li class="">
62
+ <a href="/help/">Help</a>
63
+ </li>
64
+ <li>
65
+ <a href="https://github.com/jekyll/jekyll"><span class="hide-on-mobiles">View on </span>GitHub</a>
66
+ </li>
67
+ </ul>
68
+
69
+ </nav>
70
+ <div class="grid">
71
+ <div class="unit one-third center-on-mobiles">
72
+ <h1>
73
+ <a href="/">
74
+ <span class="sr-only">Jekyll</span>
75
+ <img src="/img/logo-2x.png" width="249" height="115" alt="Jekyll Logo">
76
+ </a>
77
+ </h1>
78
+ </div>
79
+ <nav class="main-nav unit two-thirds hide-on-mobiles">
80
+ <ul>
81
+ <li class="">
82
+ <a href="/">Home</a>
83
+ </li>
84
+ <li class="current">
85
+ <a href="/docs/home/">Docs</a>
86
+ </li>
87
+ <li class="">
88
+ <a href="/news/">News</a>
89
+ </li>
90
+ <li class="">
91
+ <a href="/community/">Community</a>
92
+ </li>
93
+ <li class="">
94
+ <a href="/help/">Help</a>
95
+ </li>
96
+ <li>
97
+ <a href="https://github.com/jekyll/jekyll"><span class="hide-on-mobiles">View on </span>GitHub</a>
98
+ </li>
99
+ </ul>
100
+
101
+ </nav>
102
+ </div>
103
+ </header>
104
+
105
+
106
+ <section class="docs">
107
+ <div class="grid">
108
+
109
+ <div class="docs-nav-mobile unit whole show-on-mobiles">
110
+ <select onchange="if (this.value) window.location.href=this.value">
111
+ <option value="">Navigate the docs…</option>
112
+
113
+ <optgroup label="Getting Started">
114
+
115
+
116
+
117
+ <option value="https://jekyllrb.com/docs/home/">Welcome</option>
118
+
119
+
120
+
121
+ <option value="https://jekyllrb.com/docs/quickstart/">Quick-start guide</option>
122
+
123
+
124
+
125
+ <option value="https://jekyllrb.com/docs/installation/">Installation</option>
126
+
127
+
128
+
129
+ <option value="https://jekyllrb.com/docs/usage/">Basic Usage</option>
130
+
131
+
132
+
133
+ <option value="https://jekyllrb.com/docs/structure/">Directory structure</option>
134
+
135
+
136
+
137
+ <option value="https://jekyllrb.com/docs/configuration/">Configuration</option>
138
+
139
+
140
+ </optgroup>
141
+
142
+ <optgroup label="Your Content">
143
+
144
+
145
+
146
+ <option value="https://jekyllrb.com/docs/frontmatter/">Front Matter</option>
147
+
148
+
149
+
150
+ <option value="https://jekyllrb.com/docs/posts/">Writing posts</option>
151
+
152
+
153
+
154
+ <option value="https://jekyllrb.com/docs/drafts/">Working with drafts</option>
155
+
156
+
157
+
158
+ <option value="https://jekyllrb.com/docs/pages/">Creating pages</option>
159
+
160
+
161
+
162
+ <option value="https://jekyllrb.com/docs/static-files/">Static Files</option>
163
+
164
+
165
+
166
+ <option value="https://jekyllrb.com/docs/variables/">Variables</option>
167
+
168
+
169
+
170
+ <option value="https://jekyllrb.com/docs/collections/">Collections</option>
171
+
172
+
173
+
174
+ <option value="https://jekyllrb.com/docs/datafiles/">Data Files</option>
175
+
176
+
177
+
178
+ <option value="https://jekyllrb.com/docs/assets/">Assets</option>
179
+
180
+
181
+
182
+ <option value="https://jekyllrb.com/docs/migrations/">Blog migrations</option>
183
+
184
+
185
+ </optgroup>
186
+
187
+ <optgroup label="Customization">
188
+
189
+
190
+
191
+ <option value="https://jekyllrb.com/docs/templates/">Templates</option>
192
+
193
+
194
+
195
+ <option value="https://jekyllrb.com/docs/permalinks/">Permalinks</option>
196
+
197
+
198
+
199
+ <option value="https://jekyllrb.com/docs/pagination/">Pagination</option>
200
+
201
+
202
+
203
+ <option value="https://jekyllrb.com/docs/plugins/">Plugins</option>
204
+
205
+
206
+
207
+ <option value="https://jekyllrb.com/docs/themes/">Themes</option>
208
+
209
+
210
+
211
+ <option value="https://jekyllrb.com/docs/extras/">Extras</option>
212
+
213
+
214
+ </optgroup>
215
+
216
+ <optgroup label="Deployment">
217
+
218
+
219
+
220
+ <option value="https://jekyllrb.com/docs/github-pages/">GitHub Pages</option>
221
+
222
+
223
+
224
+ <option value="https://jekyllrb.com/docs/deployment-methods/">Deployment methods</option>
225
+
226
+
227
+
228
+ <option value="https://jekyllrb.com/docs/continuous-integration/">Continuous Integration</option>
229
+
230
+
231
+ </optgroup>
232
+
233
+ <optgroup label="Miscellaneous">
234
+
235
+
236
+
237
+ <option value="https://jekyllrb.com/docs/troubleshooting/">Troubleshooting</option>
238
+
239
+
240
+
241
+ <option value="https://jekyllrb.com/docs/sites/">Sites using Jekyll</option>
242
+
243
+
244
+
245
+ <option value="https://jekyllrb.com/docs/resources/">Resources</option>
246
+
247
+
248
+
249
+ <option value="https://jekyllrb.com/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</option>
250
+
251
+
252
+
253
+ <option value="https://jekyllrb.com/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</option>
254
+
255
+
256
+ </optgroup>
257
+
258
+ <optgroup label="Meta">
259
+
260
+
261
+
262
+ <option value="https://jekyllrb.com/docs/contributing/">Contributing</option>
263
+
264
+
265
+
266
+ <option value="https://jekyllrb.com/docs/conduct/">Code of Conduct</option>
267
+
268
+
269
+
270
+ <option value="https://jekyllrb.com/docs/history/">History</option>
271
+
272
+
273
+ </optgroup>
274
+
275
+ </select>
276
+ </div>
277
+
278
+
279
+ <div class="unit four-fifths">
280
+ <article>
281
+ <div class="improve right hide-on-mobiles">
282
+ <a href="https://github.com/jekyll/jekyll/edit/master/site/_docs/collections.md"><i class="fa fa-pencil"></i>  Improve this page</a>
283
+ </div>
284
+ <h1>Collections</h1>
285
+ <p>Not everything is a post or a page. Maybe you want to document the various
286
+ methods in your open source project, members of a team, or talks at a
287
+ conference. Collections allow you to define a new type of document that behave
288
+ like Pages or Posts do normally, but also have their own unique properties and
289
+ namespace.</p>
290
+
291
+ <h2 id="using-collections">Using Collections</h2>
292
+
293
+ <h3 id="step-1-tell-jekyll-to-read-in-your-collection">Step 1: Tell Jekyll to read in your collection</h3>
294
+
295
+ <p>Add the following to your site’s <code class="highlighter-rouge">_config.yml</code> file, replacing <code class="highlighter-rouge">my_collection</code>
296
+ with the name of your collection:</p>
297
+
298
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">collections</span><span class="pi">:</span>
299
+ <span class="pi">-</span> <span class="s">my_collection</span></code></pre></figure>
300
+
301
+ <p>You can optionally specify metadata for your collection in the configuration:</p>
302
+
303
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">collections</span><span class="pi">:</span>
304
+ <span class="s">my_collection</span><span class="pi">:</span>
305
+ <span class="s">foo</span><span class="pi">:</span> <span class="s">bar</span></code></pre></figure>
306
+
307
+ <p>Default attributes can also be set for a collection:</p>
308
+
309
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">defaults</span><span class="pi">:</span>
310
+ <span class="pi">-</span> <span class="s">scope</span><span class="pi">:</span>
311
+ <span class="s">path</span><span class="pi">:</span> <span class="s2">"</span><span class="s">"</span>
312
+ <span class="s">type</span><span class="pi">:</span> <span class="s">my_collection</span>
313
+ <span class="s">values</span><span class="pi">:</span>
314
+ <span class="s">layout</span><span class="pi">:</span> <span class="s">page</span></code></pre></figure>
315
+
316
+ <h3 id="step-2-add-your-content">Step 2: Add your content</h3>
317
+
318
+ <p>Create a corresponding folder (e.g. <code class="highlighter-rouge">&lt;source&gt;/_my_collection</code>) and add
319
+ documents. YAML Front Matter is read in as data if it exists, and everything
320
+ after it is stuck in the Document’s <code class="highlighter-rouge">content</code> attribute. If no YAML Front
321
+ Matter is provided, Jekyll will not generate the file in your collection.</p>
322
+
323
+ <div class="note info">
324
+ <h5>Be sure to name your directories correctly</h5>
325
+ <p>
326
+ The folder must be named identically to the collection you defined in
327
+ your <code>_config.yml</code> file, with the addition of the preceding <code>_</code> character.
328
+ </p>
329
+ </div>
330
+
331
+ <h3 id="step-3-optionally-render-your-collections-documents-into-independent-files">Step 3: Optionally render your collection’s documents into independent files</h3>
332
+
333
+ <p>If you’d like Jekyll to create a public-facing, rendered version of each
334
+ document in your collection, set the <code class="highlighter-rouge">output</code> key to <code class="highlighter-rouge">true</code> in your collection
335
+ metadata in your <code class="highlighter-rouge">_config.yml</code>:</p>
336
+
337
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">collections</span><span class="pi">:</span>
338
+ <span class="s">my_collection</span><span class="pi">:</span>
339
+ <span class="s">output</span><span class="pi">:</span> <span class="s">true</span></code></pre></figure>
340
+
341
+ <p>This will produce a file for each document in the collection.
342
+ For example, if you have <code class="highlighter-rouge">_my_collection/some_subdir/some_doc.md</code>,
343
+ it will be rendered using Liquid and the Markdown converter of your
344
+ choice and written out to <code class="highlighter-rouge">&lt;dest&gt;/my_collection/some_subdir/some_doc.html</code>.</p>
345
+
346
+ <p>As for posts with <a href="../permalinks/">Permalinks</a>, the document
347
+ URL can be customized by setting <code class="highlighter-rouge">permalink</code> metadata for the collection:</p>
348
+
349
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">collections</span><span class="pi">:</span>
350
+ <span class="s">my_collection</span><span class="pi">:</span>
351
+ <span class="s">output</span><span class="pi">:</span> <span class="s">true</span>
352
+ <span class="s">permalink</span><span class="pi">:</span> <span class="s">/awesome/:path/</span></code></pre></figure>
353
+
354
+ <p>For example, if you have <code class="highlighter-rouge">_my_collection/some_subdir/some_doc.md</code>, it will be
355
+ written out to <code class="highlighter-rouge">&lt;dest&gt;/awesome/some_subdir/some_doc/index.html</code>.</p>
356
+
357
+ <div class="note info">
358
+ <h5>Don't forget to add YAML for processing</h5>
359
+ <p>
360
+ Files in collections that do not have front matter are treated as
361
+ <a href="/docs/static-files">static files</a> and simply copied to their
362
+ output location without processing.
363
+ </p>
364
+ </div>
365
+
366
+ <div class="mobile-side-scroller">
367
+ <table>
368
+ <thead>
369
+ <tr>
370
+ <th>Variable</th>
371
+ <th>Description</th>
372
+ </tr>
373
+ </thead>
374
+ <tbody>
375
+ <tr>
376
+ <td>
377
+ <p><code>collection</code></p>
378
+ </td>
379
+ <td>
380
+ <p>Label of the containing collection.</p>
381
+ </td>
382
+ </tr>
383
+ <tr>
384
+ <td>
385
+ <p><code>path</code></p>
386
+ </td>
387
+ <td>
388
+ <p>Path to the document relative to the collection's directory.</p>
389
+ </td>
390
+ </tr>
391
+ <tr>
392
+ <td>
393
+ <p><code>name</code></p>
394
+ </td>
395
+ <td>
396
+ <p>The document's base filename, with every sequence of spaces
397
+ and non-alphanumeric characters replaced by a hyphen.</p>
398
+ </td>
399
+ </tr>
400
+ <tr>
401
+ <td>
402
+ <p><code>title</code></p>
403
+ </td>
404
+ <td>
405
+ <p>The document's lowercase title (as defined in its <a href="/docs/frontmatter/">front matter</a>), with every sequence of spaces and non-alphanumeric characters replaced by a hyphen. If the document does not define a title in its <a href="/docs/frontmatter/">front matter</a>, this is equivalent to <code>name</code>.</p>
406
+ </td>
407
+ </tr>
408
+ <tr>
409
+ <td>
410
+ <p><code>output_ext</code></p>
411
+ </td>
412
+ <td>
413
+ <p>Extension of the output file.</p>
414
+ </td>
415
+ </tr>
416
+ </tbody>
417
+ </table>
418
+ </div>
419
+
420
+ <h2 id="liquid-attributes">Liquid Attributes</h2>
421
+
422
+ <h3 id="collections">Collections</h3>
423
+
424
+ <p>Each collection is accessible via the <code class="highlighter-rouge">site</code> Liquid variable. For example, if
425
+ you want to access the <code class="highlighter-rouge">albums</code> collection found in <code class="highlighter-rouge">_albums</code>, you’d use
426
+ <code class="highlighter-rouge">site.albums</code>. Each collection is itself an array of documents
427
+ (e.g. <code class="highlighter-rouge">site.albums</code> is an array of documents, much like <code class="highlighter-rouge">site.pages</code> and
428
+ <code class="highlighter-rouge">site.posts</code>). See below for how to access attributes of those documents.</p>
429
+
430
+ <p>The collections are also available under <code class="highlighter-rouge">site.collections</code>, with the metadata
431
+ you specified in your <code class="highlighter-rouge">_config.yml</code> (if present) and the following information:</p>
432
+
433
+ <div class="mobile-side-scroller">
434
+ <table>
435
+ <thead>
436
+ <tr>
437
+ <th>Variable</th>
438
+ <th>Description</th>
439
+ </tr>
440
+ </thead>
441
+ <tbody>
442
+ <tr>
443
+ <td>
444
+ <p><code>label</code></p>
445
+ </td>
446
+ <td>
447
+ <p>
448
+ The name of your collection, e.g. <code>my_collection</code>.
449
+ </p>
450
+ </td>
451
+ </tr>
452
+ <tr>
453
+ <td>
454
+ <p><code>docs</code></p>
455
+ </td>
456
+ <td>
457
+ <p>
458
+ An array of <a href="#documents">documents</a>.
459
+ </p>
460
+ </td>
461
+ </tr>
462
+ <tr>
463
+ <td>
464
+ <p><code>files</code></p>
465
+ </td>
466
+ <td>
467
+ <p>
468
+ An array of static files in the collection.
469
+ </p>
470
+ </td>
471
+ </tr>
472
+ <tr>
473
+ <td>
474
+ <p><code>relative_directory</code></p>
475
+ </td>
476
+ <td>
477
+ <p>
478
+ The path to the collection's source directory, relative to the site
479
+ source.
480
+ </p>
481
+ </td>
482
+ </tr>
483
+ <tr>
484
+ <td>
485
+ <p><code>directory</code></p>
486
+ </td>
487
+ <td>
488
+ <p>
489
+ The full path to the collections's source directory.
490
+ </p>
491
+ </td>
492
+ </tr>
493
+ <tr>
494
+ <td>
495
+ <p><code>output</code></p>
496
+ </td>
497
+ <td>
498
+ <p>
499
+ Whether the collection's documents will be output as individual
500
+ files.
501
+ </p>
502
+ </td>
503
+ </tr>
504
+ </tbody>
505
+ </table>
506
+ </div>
507
+
508
+ <h3 id="documents">Documents</h3>
509
+
510
+ <p>In addition to any YAML Front Matter provided in the document’s corresponding
511
+ file, each document has the following attributes:</p>
512
+
513
+ <div class="mobile-side-scroller">
514
+ <table>
515
+ <thead>
516
+ <tr>
517
+ <th>Variable</th>
518
+ <th>Description</th>
519
+ </tr>
520
+ </thead>
521
+ <tbody>
522
+ <tr>
523
+ <td>
524
+ <p><code>content</code></p>
525
+ </td>
526
+ <td>
527
+ <p>
528
+ The (unrendered) content of the document. If no YAML Front Matter is
529
+ provided, Jekyll will not generate the file in your collection. If
530
+ YAML Front Matter is used, then this is all the contents of the file
531
+ after the terminating
532
+ `---` of the front matter.
533
+ </p>
534
+ </td>
535
+ </tr>
536
+ <tr>
537
+ <td>
538
+ <p><code>output</code></p>
539
+ </td>
540
+ <td>
541
+ <p>
542
+ The rendered output of the document, based on the
543
+ <code>content</code>.
544
+ </p>
545
+ </td>
546
+ </tr>
547
+ <tr>
548
+ <td>
549
+ <p><code>path</code></p>
550
+ </td>
551
+ <td>
552
+ <p>
553
+ The full path to the document's source file.
554
+ </p>
555
+ </td>
556
+ </tr>
557
+ <tr>
558
+ <td>
559
+ <p><code>relative_path</code></p>
560
+ </td>
561
+ <td>
562
+ <p>
563
+ The path to the document's source file relative to the site source.
564
+ </p>
565
+ </td>
566
+ </tr>
567
+ <tr>
568
+ <td>
569
+ <p><code>url</code></p>
570
+ </td>
571
+ <td>
572
+ <p>
573
+ The URL of the rendered collection. The file is only written to the destination when the collection to which it belongs has <code>output: true</code> in the site's configuration.
574
+ </p>
575
+ </td>
576
+ </tr>
577
+ <tr>
578
+ <td>
579
+ <p><code>collection</code></p>
580
+ </td>
581
+ <td>
582
+ <p>
583
+ The name of the document's collection.
584
+ </p>
585
+ </td>
586
+ </tr>
587
+ <tr>
588
+ <td>
589
+ <p><code>date</code></p>
590
+ </td>
591
+ <td>
592
+ <p>
593
+ The date of the document's collection.
594
+ </p>
595
+ </td>
596
+ </tr>
597
+ </tbody>
598
+ </table>
599
+ </div>
600
+
601
+ <h2 id="accessing-collection-attributes">Accessing Collection Attributes</h2>
602
+
603
+ <p>Attributes from the YAML front matter can be accessed as data anywhere in the
604
+ site. Using the above example for configuring a collection as <code class="highlighter-rouge">site.albums</code>,
605
+ one might have front matter in an individual file structured as follows (which
606
+ must use a supported markup format, and cannot be saved with a <code class="highlighter-rouge">.yaml</code>
607
+ extension):</p>
608
+
609
+ <figure class="highlight"><pre><code class="language-yaml" data-lang="yaml"><span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Josquin:</span><span class="nv"> </span><span class="s">Missa</span><span class="nv"> </span><span class="s">De</span><span class="nv"> </span><span class="s">beata</span><span class="nv"> </span><span class="s">virgine</span><span class="nv"> </span><span class="s">and</span><span class="nv"> </span><span class="s">Missa</span><span class="nv"> </span><span class="s">Ave</span><span class="nv"> </span><span class="s">maris</span><span class="nv"> </span><span class="s">stella"</span>
610
+ <span class="s">artist</span><span class="pi">:</span> <span class="s2">"</span><span class="s">The</span><span class="nv"> </span><span class="s">Tallis</span><span class="nv"> </span><span class="s">Scholars"</span>
611
+ <span class="s">director</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Peter</span><span class="nv"> </span><span class="s">Phillips"</span>
612
+ <span class="s">works</span><span class="pi">:</span>
613
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Missa</span><span class="nv"> </span><span class="s">De</span><span class="nv"> </span><span class="s">beata</span><span class="nv"> </span><span class="s">virgine"</span>
614
+ <span class="s">composer</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Josquin</span><span class="nv"> </span><span class="s">des</span><span class="nv"> </span><span class="s">Prez"</span>
615
+ <span class="s">tracks</span><span class="pi">:</span>
616
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Kyrie"</span>
617
+ <span class="s">duration</span><span class="pi">:</span> <span class="s2">"</span><span class="s">4:25"</span>
618
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Gloria"</span>
619
+ <span class="s">duration</span><span class="pi">:</span> <span class="s2">"</span><span class="s">9:53"</span>
620
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Credo"</span>
621
+ <span class="s">duration</span><span class="pi">:</span> <span class="s2">"</span><span class="s">9:09"</span>
622
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Sanctus</span><span class="nv"> </span><span class="s">&amp;</span><span class="nv"> </span><span class="s">Benedictus"</span>
623
+ <span class="s">duration</span><span class="pi">:</span> <span class="s2">"</span><span class="s">7:47"</span>
624
+ <span class="pi">-</span> <span class="s">title</span><span class="pi">:</span> <span class="s2">"</span><span class="s">Agnus</span><span class="nv"> </span><span class="s">Dei</span><span class="nv"> </span><span class="s">I,</span><span class="nv"> </span><span class="s">II</span><span class="nv"> </span><span class="s">&amp;</span><span class="nv"> </span><span class="s">III"</span>
625
+ <span class="s">duration</span><span class="pi">:</span> <span class="s2">"</span><span class="s">6:49"</span></code></pre></figure>
626
+
627
+ <p>Every album in the collection could be listed on a single page with a template:</p>
628
+
629
+ <figure class="highlight"><pre><code class="language-html" data-lang="html">{% for album in site.albums %}
630
+ <span class="nt">&lt;h2&gt;</span>{{ album.title }}<span class="nt">&lt;/h2&gt;</span>
631
+ <span class="nt">&lt;p&gt;</span>Performed by {{ album.artist }}{% if album.director %}, directed by {{ album.director }}{% endif %}<span class="nt">&lt;/p&gt;</span>
632
+ {% for work in album.works %}
633
+ <span class="nt">&lt;h3&gt;</span>{{ work.title }}<span class="nt">&lt;/h3&gt;</span>
634
+ <span class="nt">&lt;p&gt;</span>Composed by {{ work.composer }}<span class="nt">&lt;/p&gt;</span>
635
+ <span class="nt">&lt;ul&gt;</span>
636
+ {% for track in work.tracks %}
637
+ <span class="nt">&lt;li&gt;</span>{{ track.title }} ({{ track.duration }})<span class="nt">&lt;/li&gt;</span>
638
+ {% endfor %}
639
+ <span class="nt">&lt;/ul&gt;</span>
640
+ {% endfor %}
641
+ {% endfor %}</code></pre></figure>
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+ <div class="section-nav">
689
+ <div class="left align-right">
690
+
691
+
692
+
693
+ <a href="/docs/variables/" class="prev">Back</a>
694
+
695
+ </div>
696
+ <div class="right align-left">
697
+
698
+
699
+
700
+ <a href="/docs/datafiles/" class="next">Next</a>
701
+
702
+ </div>
703
+ </div>
704
+ <div class="clear"></div>
705
+
706
+ </article>
707
+ </div>
708
+
709
+ <div class="unit one-fifth hide-on-mobiles">
710
+ <aside>
711
+
712
+ <h4>Getting Started</h4>
713
+ <ul>
714
+
715
+
716
+
717
+ <li class=""><a href="https://jekyllrb.com/docs/home/">Welcome</a></li>
718
+
719
+
720
+
721
+ <li class=""><a href="https://jekyllrb.com/docs/quickstart/">Quick-start guide</a></li>
722
+
723
+
724
+
725
+ <li class=""><a href="https://jekyllrb.com/docs/installation/">Installation</a></li>
726
+
727
+
728
+
729
+ <li class=""><a href="https://jekyllrb.com/docs/usage/">Basic Usage</a></li>
730
+
731
+
732
+
733
+ <li class=""><a href="https://jekyllrb.com/docs/structure/">Directory structure</a></li>
734
+
735
+
736
+
737
+ <li class=""><a href="https://jekyllrb.com/docs/configuration/">Configuration</a></li>
738
+
739
+ </ul>
740
+
741
+
742
+ <h4>Your Content</h4>
743
+ <ul>
744
+
745
+
746
+
747
+ <li class=""><a href="https://jekyllrb.com/docs/frontmatter/">Front Matter</a></li>
748
+
749
+
750
+
751
+ <li class=""><a href="https://jekyllrb.com/docs/posts/">Writing posts</a></li>
752
+
753
+
754
+
755
+ <li class=""><a href="https://jekyllrb.com/docs/drafts/">Working with drafts</a></li>
756
+
757
+
758
+
759
+ <li class=""><a href="https://jekyllrb.com/docs/pages/">Creating pages</a></li>
760
+
761
+
762
+
763
+ <li class=""><a href="https://jekyllrb.com/docs/static-files/">Static Files</a></li>
764
+
765
+
766
+
767
+ <li class=""><a href="https://jekyllrb.com/docs/variables/">Variables</a></li>
768
+
769
+
770
+
771
+ <li class="current"><a href="https://jekyllrb.com/docs/collections/">Collections</a></li>
772
+
773
+
774
+
775
+ <li class=""><a href="https://jekyllrb.com/docs/datafiles/">Data Files</a></li>
776
+
777
+
778
+
779
+ <li class=""><a href="https://jekyllrb.com/docs/assets/">Assets</a></li>
780
+
781
+
782
+
783
+ <li class=""><a href="https://jekyllrb.com/docs/migrations/">Blog migrations</a></li>
784
+
785
+ </ul>
786
+
787
+
788
+ <h4>Customization</h4>
789
+ <ul>
790
+
791
+
792
+
793
+ <li class=""><a href="https://jekyllrb.com/docs/templates/">Templates</a></li>
794
+
795
+
796
+
797
+ <li class=""><a href="https://jekyllrb.com/docs/permalinks/">Permalinks</a></li>
798
+
799
+
800
+
801
+ <li class=""><a href="https://jekyllrb.com/docs/pagination/">Pagination</a></li>
802
+
803
+
804
+
805
+ <li class=""><a href="https://jekyllrb.com/docs/plugins/">Plugins</a></li>
806
+
807
+
808
+
809
+ <li class=""><a href="https://jekyllrb.com/docs/themes/">Themes</a></li>
810
+
811
+
812
+
813
+ <li class=""><a href="https://jekyllrb.com/docs/extras/">Extras</a></li>
814
+
815
+ </ul>
816
+
817
+
818
+ <h4>Deployment</h4>
819
+ <ul>
820
+
821
+
822
+
823
+ <li class=""><a href="https://jekyllrb.com/docs/github-pages/">GitHub Pages</a></li>
824
+
825
+
826
+
827
+ <li class=""><a href="https://jekyllrb.com/docs/deployment-methods/">Deployment methods</a></li>
828
+
829
+
830
+
831
+ <li class=""><a href="https://jekyllrb.com/docs/continuous-integration/">Continuous Integration</a></li>
832
+
833
+ </ul>
834
+
835
+
836
+ <h4>Miscellaneous</h4>
837
+ <ul>
838
+
839
+
840
+
841
+ <li class=""><a href="https://jekyllrb.com/docs/troubleshooting/">Troubleshooting</a></li>
842
+
843
+
844
+
845
+ <li class=""><a href="https://jekyllrb.com/docs/sites/">Sites using Jekyll</a></li>
846
+
847
+
848
+
849
+ <li class=""><a href="https://jekyllrb.com/docs/resources/">Resources</a></li>
850
+
851
+
852
+
853
+ <li class=""><a href="https://jekyllrb.com/docs/upgrading/0-to-2/">Upgrading from 0.x to 2.x</a></li>
854
+
855
+
856
+
857
+ <li class=""><a href="https://jekyllrb.com/docs/upgrading/2-to-3/">Upgrading from 2.x to 3.x</a></li>
858
+
859
+ </ul>
860
+
861
+
862
+ <h4>Meta</h4>
863
+ <ul>
864
+
865
+
866
+
867
+ <li class=""><a href="https://jekyllrb.com/docs/contributing/">Contributing</a></li>
868
+
869
+
870
+
871
+ <li class=""><a href="https://jekyllrb.com/docs/conduct/">Code of Conduct</a></li>
872
+
873
+
874
+
875
+ <li class=""><a href="https://jekyllrb.com/docs/history/">History</a></li>
876
+
877
+ </ul>
878
+
879
+
880
+ </aside>
881
+ </div>
882
+
883
+
884
+ <div class="clear"></div>
885
+
886
+ </div>
887
+ </section>
888
+
889
+
890
+ <footer>
891
+ <div class="grid">
892
+ <div class="unit one-third center-on-mobiles">
893
+ <p>The contents of this website are <br>© 2016 under the terms of the <a href="https://github.com/jekyll/jekyll/blob/master/LICENSE">MIT License</a>.</p>
894
+ </div>
895
+ <div class="unit two-thirds align-right center-on-mobiles">
896
+ <p>
897
+ Proudly hosted by
898
+ <a href="https://github.com">
899
+ <img src="/img/footer-logo.png" width="100" height="30" alt="GitHub • Social coding">
900
+ </a>
901
+ </p>
902
+ </div>
903
+ </div>
904
+ </footer>
905
+
906
+ <script>
907
+ var anchorForId = function (id) {
908
+ var anchor = document.createElement("a");
909
+ anchor.className = "header-link";
910
+ anchor.href = "#" + id;
911
+ anchor.innerHTML = "<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>";
912
+ anchor.title = "Permalink";
913
+ return anchor;
914
+ };
915
+
916
+ var linkifyAnchors = function (level, containingElement) {
917
+ var headers = containingElement.getElementsByTagName("h" + level);
918
+ for (var h = 0; h < headers.length; h++) {
919
+ var header = headers[h];
920
+
921
+ if (typeof header.id !== "undefined" && header.id !== "") {
922
+ header.appendChild(anchorForId(header.id));
923
+ }
924
+ }
925
+ };
926
+
927
+ document.onreadystatechange = function () {
928
+ if (this.readyState === "complete") {
929
+ var contentBlock = document.getElementsByClassName("docs")[0] || document.getElementsByClassName("news")[0];
930
+ if (!contentBlock) {
931
+ return;
932
+ }
933
+ for (var level = 1; level <= 6; level++) {
934
+ linkifyAnchors(level, contentBlock);
935
+ }
936
+ }
937
+ };
938
+ </script>
939
+
940
+
941
+ <!-- Gauges (http://gaug.es/) -->
942
+ <script>
943
+ var _gauges = _gauges || [];
944
+ (function() {
945
+ var t = document.createElement('script');
946
+ t.type = 'text/javascript';
947
+ t.async = true;
948
+ t.id = 'gauges-tracker';
949
+ t.setAttribute('data-site-id', '503c5af6613f5d0f19000027');
950
+ t.src = '//secure.gaug.es/track.js';
951
+ var s = document.getElementsByTagName('script')[0];
952
+ s.parentNode.insertBefore(t, s);
953
+ })();
954
+ </script>
955
+
956
+
957
+
958
+ <!-- Google Analytics (http://google.com/analytics) -->
959
+ <script>
960
+ !function(j,e,k,y,l,L){j.GoogleAnalyticsObject=y,j[y]||(j[y]=function(){
961
+ (j[y].q=j[y].q||[]).push(arguments)}),j[y].l=+new Date,l=e.createElement(k),
962
+ L=e.getElementsByTagName(k)[0],l.src='//www.google-analytics.com/analytics.js',
963
+ L.parentNode.insertBefore(l,L)}(window,document,'script','ga');
964
+
965
+ ga('create', 'UA-50755011-1', 'jekyllrb.com');
966
+ ga('send', 'pageview');
967
+
968
+ </script>
969
+
970
+
971
+
972
+ </body>
973
+ </html>